Search code examples
azure-devops

Azure DevOps Pull Requests line colours


I created a PR in ADO and some of the lines in a newly created file are marked with red or green colors, with x's or checkmarks. Below is my new file with the colored lines and indicators: pr breakdown with colored lines

I do not know and cannot find what they mean... does anyone know?


Solution

  • 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.