which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
We are using Sonar 8.1 (community edition)
what are you trying to achieve
We are having a .Net Project which we are doing a build and running test by jenkins pipeline job where we have integrated the sonar.
what have you tried so far to achieve this
We have first build the project, executed the unit test and generated the .trx files and .coverage files, after that we are doing a sonar analysis with begin, build, test and end.
but code coverage is showing 1.7%
We are stuck on this for past 1 month without much progress.
what is the version of Scanner for MSBuild you are using?
are you still on SQ 8.1? it’s not a supported version, and we’ve improved our coverage logging in the newer versions.
are you running all commands from the same folder?
could you please share the the verbose output of the END command (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the BEGIN step, and please attach the output of END step)