Must-share information (formatted with Markdown):
-
which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) - Enterprise Edition v2025.1 (102418)
-
how is SonarQube deployed: zip, Docker, Helm - zip
-
what are you trying to achieve - To get opencover coverage data onto SonarQube
-
what have you tried so far to achieve this
-
We ran Redgat tSQLt Unit Tests and was able to get the Cobertura.xml & SonarQube.xml files
-
We used PowerShell script to run OpenCover.dll to convert Coverage data to Coverage.opencoverxml file
-
We then did SQ Run Analysis and Push to SQ
and we got
Publishing coverage summary data.line- 7 of 90 covered.
Publishing code coverage HTML report.
But we check coverage is still 0% for the Project
- We notice that the Coverage.opencoverxml file with files info all pointing to the temp test StoredProcedures files created and used in the Unit Tests which SonarQube scanner did not seem to related to the actual sql code.
Thanks
Ken
-
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!