Closed aidamus closed 4 years ago
Hi @aidamus,
our task does not calculate the coverage itself. Thus, you cannot configure it for specific assemblies. You have to to this while collecting the coverage data using (e.g.) a runsettings file. See https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2019 and https://docs.microsoft.com/en-us/visualstudio/test/customizing-code-coverage-analysis?view=vs-2019 for more information.
I'll leave this issue open for a couple more days just in case you need more assistance.
Happy building, René
it makes sense! I managed to get it working using the runsettings file. Thanks a lot!
I noticed when I opened .coverage file generated by ADO build, that it's trying to analyze coverage of a variety of dll's referenced in the main project thus reducing the % of coverage as a result of it. (coverage for this project should be 72.30% as shown in the second row) Is there a way to tell the task to cover only certain dll's?