Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
- what are you trying to achieve
- what have you tried so far to achieve this
Trying to get my SonarQube Projects to reflect the Code Coverage from Visual Studio Enterprise.
I’m having a heck of a hard time figuring things out.
I added CodeCoverage.exe to my path as well as vstest.console.exe.
I followed the command procedure (I think).
I ran this command first…
dotnet “C:\SonarScanner_MS_Build\Scanner-NETCORE3\SonarScanner.MSBuild.dll” begin /k:“DOR_API_COV_TEST” /d:sonar.cs.vscoveragexml.reportsPaths=“C:\Users\robarnes\Documents\Discovery\Centene\DOR\DOR_API\DOR_API_2020-10-30 13_42_00.coveragexml”
That ran fine.
Then I tried to run this command and I get file not found…
dotnet test DOR_API.coveragexml --collect “DotnetCodeCoverage” CodeCoverage.exe analyze /output: DotnetCoverage.coverage
I have formatted the I/P file name two dozen times and no matter what… Not Found
Any help = greatly appreciated.