jmecosta / sonar-fsharp-plugin

F# SonarQube (TM) plugin - support for F#
GNU Lesser General Public License v3.0
52 stars 14 forks source link

Code Coverage - VSTest #21

Closed alpacamybags118 closed 5 years ago

alpacamybags118 commented 6 years ago

I've installed the plugin in my Sonar environment, and I'm using Team Foundation Server 2018 to run a CI workflow that will run f# unit tests, then report the results to Sonar. I'm running the tests using VSTest.

Currently, TFS is able to pick up the trx and coverage files and show code coverage metrics in the build summary, but Sonar is not picking up the coverage file. I've tried using both the sonar.fs.vscoveragexml.reportsPaths and the sonar.cs.vscoveragexml.reportsPaths. When I look at the output of the Sonar scanner, there is no mention of the sonar.fs.vscoveragexml.reportsPaths when I specify it, and when I use sonar.cs.vscoveragexml.reportsPaths, it picks up the coverage file, but then says it is unable to parse it.

Let me know if there is anything I can provide to help uncover what is happening

peterquicken commented 5 years ago

Upvoting this issue

jmecosta commented 5 years ago

@peterquicken @alpacamybags118 sorry however we will drop the support for those in plugin. There are already many alternatives that u can use for coverage like https://docs.sonarqube.org/latest/analysis/generic-test/ or https://github.com/jmecsoftware/sonarqube-testdata-plugin. coverage was kind of proto on top of c# dotnet tests library and the way it was maintained was not good.