Hi
I’m looking for a solution for publishing the coverage data for .Net tests that are ran outside the begin-end cycle. This is a Unity project and we have edit time tests and play time tests which run very slowly.
We try to run them in parallel with the sonar scanner process , the problem is that by the time the scanner exits the play tests are not done yet.
Is it possible to achieve this or maybe there is a problem in our solution and there is another way to do parallel analysis?
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarScanner for MSBuild 5.2.1 - what are you trying to achieve
I want to run the SonarScanner on a parallel step in a Jenkins Pipeline. The coverage reports will be generated on another parallel stage and need to be integrated in the final SonarQ report. I’m basically looking for a way to send coverage report data to SonarQ after the ‘end’ step. - what have you tried so far to achieve this
Run the same commands w/o building and with the path to the report files in the parameter section
bat "dotnet-sonarscanner begin /key:\"\" /d:sonar.host.url=\"\" \
/d:sonar.verbose=true \
/d:sonar.projectBaseDir=\"${sqPath}\" \
/d:sonar.pullrequest.key=${env.gitlabMergeRequestId} \
/d:sonar.pullrequest.branch=${env.gitlabSourceBranch} \
/d:sonar.cs.nunit.reportsPaths=\"%WORKSPACE%\\UnitTests\\EditModeTests\\results.xml,%WORKSPACE%\\UnitTests\\PlayModeTests\\results.xml\" \
/d:sonar.pullrequest.base=${env.gitlabTargetBranch}"
bat "dotnet-sonarscanner end"
}
Thank you for an eventual answer.