2
votes

The documentation here says

In order to get coverage metrics for a pull request, first configure a pipeline that validates pull requests. In this pipeline, configure the test tool you are using to collect code coverage metrics. Coverage results must then be published to the server for reporting.

I am not able to understand this. Any example or futher detailed information will be really helpful.

1

1 Answers

2
votes

This is about create a pipeline to run a test and publish the test result (collect and publish code coverage results) to check how much the percentage of the changed code lines has been covered by your tests.

There's a .Net Core example mentioned in the doc you can refer to about how to test and publish the test result.

Notice: It's also mentioned in the doc:

the code coverage for pull requests feature discussed in this document is currently available only for .NET and .NET core projects using the Visual Studio code coverage results format (file extension .coverage).