The feature is described here
You can now see code coverage metrics for changes within the pull request (PR) view. This ensures that you have adequately tested your changes through automated tests. Coverage status will appear as a comment in the PR overview. You can view details of coverage information for every code line that is changed in the file diff view.
However to configure this it requires azurepipelines-coverage.yml
at the root of the repo, however I cannot find the schema anywhere.
Anyone got any idea? Without being able to configure it, the default code coverage percentage is set to 70% and I cannot seem to disable it.
I have Googled, searched the blog post, searched Microsoft Documentation and Github.
To calculate the code coverage percentage, simply use the following formula: Code Coverage Percentage = (Number of lines of code executed by a testing algorithm/Total number of lines of code in a system component) * 100.
Code coverage is a metric that can help you understand how much of your source is tested. It's a very useful metric that can help you assess the quality of your test suite, and we will see here how you can get started with your projects.
coverage:
status:
diff:
target: 40%
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With