Azure DevOps Pull Requests line colours

Viewed 1144

I created a PR and some of lines are marked with red or green colors (in newly created file). Cannot find what does it mean... anyone knows? Below is the example: enter image description here

1 Answers

Cannot find what does it mean... anyone knows?

The Green and Red colors are for PR Code Coverage.

enter image description here

The lines marked in red indicates that your test can't reach those lines. (The code in else{} won't be executed, not covered)

The lines marked in green indicates that your test has run through those lines/code, covered.

Related