How to integrate MSTEST from Jenkins to Sonarqube

Hi,

How to integrate MSTEST in Jenkins with Sonarqube.

Please suggest any ideas.

Thanks

You’ll need to run DotCover or OpenCover to run MSTest and generate coverage data.

When you run the BEGIN command of the MSBuild scanner you’ll need to provide the appropriate testing and coverage reporting properties per https://sonarqube.thehartford.com/documentation/analysis/coverage/

Run MSBuild
Run the scanner END command.

Your unit testing and coverage metrics should display in Sonarqube.

1 Like

Please also read [Coverage & Test Data] Generate Reports for C#, VB.net .

Thanks @RSchaeferHIG ,I will go through the docs and try to publish the results in Sonarqube.

@Andrei_Epure Thanks,I will go through the docs.

1 Like

@RSchaeferHIG I am not able to see the content in [https://sonarqube.thehartford.com/documentation/analysis/coverage/ ]