Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schema for azurepipelines-coverage.yml to configure newly released code coverage metrics feature for PR's

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.

like image 514
justinsaade Avatar asked Jul 26 '19 01:07

justinsaade


People also ask

How do you use code coverage?

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.

What is code coverage build?

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.


1 Answers

coverage:
  status:
    diff:
      target: 40%
like image 67
starian chen-MSFT Avatar answered Sep 28 '22 09:09

starian chen-MSFT