Reputation: 1879
I am not able to see code coverage value to one of my projects.I execute below commands to fetch the same.
For NUnit
"C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "C:\Example.Tests.dll" --where "cat == Unit" --result:Example.nunit-result.xml
For OpenCover
C:\Users\Administrator\AppData\Local\Apps\OpenCover\OpenCover.Console.exe "-target:C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe" "-targetargs:C:\Example.Tests.dll --where=cat=Unit" -register:XXX
I have included --where=cat=Unit
in Open-cover batch command and I see all my test cases ran successfully but I could not see the code-coverage. What more is missing from my end.
Sonarqube result of my project screenshot.
Upvotes: 1
Views: 397
Reputation: 1879
Finally after changing location of results.xml I could see the code coverage.
Upvotes: 1