简体   繁体   中英

Sonarqube code coverage with OpenCover

I'm currently using SonarQube 4.4 (latest) and I am trying to get a code coverage report for my c# project to appear. I have the Unit Test Success showing but the Code Coverage simply shows as " - " like so :

Here is what I am doing: I am following the sonarqube example page: https://github.com/SonarSource/sonar-examples/tree/master/projects/languages/csharp

I am running OpenCover and VSTest and configuring SonarQube to find the report.xml path under the CodeCoverage Configuration tab as well as configuring the Unit Test result paths.

From my understanding SonarQube no longer support Gallio, am I missing something?

Indeed, the C# plugin does not support Gallio anymore. But the latest versions support importing test result reports generated by tools like OpenCover.

Please read the "Code Coverage" documentation to know how to do this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM