Reputation: 23
Hi guys i have a problem with my code coverage of my azure pipeline. When the CI gets trigged for the master branch the agent has a job to test the .net core. When i use this test i have to configure the route and also enable the code coverage. After the CI has been done it ended succesfully and i can download a file with the code coverage. The problem i have is i cant open this file, not with visual studio or anything else. Aynone that knows how i can fix this problem and maby i didnt configure it right?
Picture of my settings:
picture of the file
picture of the error
https://i.sstatic.net/fxqdI.png
Upvotes: 1
Views: 1606
Reputation: 40603
To generate code coverage please follow this steps
Upvotes: 0
Reputation: 51093
Seems you are using the wrong configuration. I'm afraid --collect"Code coverage"
will not work.
You could add a .NET core test task and add /p:CollectCoverage=true
argument then use report generate task for adding code coverage reports.
More detail steps, please refer below tutorials:
Upvotes: 1