缺少Sonarqube中Dotcover的报道结果

时间:2017-02-20 11:32:37

标签: sonarqube code-coverage dotcover sonarqube-msbuild-runner

我可以在DotCover的帮助下生成HTML报告,并使用“/d:sonar.cs.dotcover.reportsPaths=.\dotCover\dotCoverResults.html”将其传递给Sonarqube(dotcover html包含覆盖数据)它)。在Sonar日志中,我没有看到任何错误消息,但Sonar仪表板显示没有覆盖;它是空白的。另一个应用程序的类似配置在其他应用程序中工作得非常好,但在此不适用。 Blow是Jenkins用于此的配置。

Sonarqube版本:4.5.7 MSBuild SonarQube Runner:2.0 C#:5.2

dotnet restore --configfile .\.nuget\NuGet.Config
MSBuild myApplication.sln /t:Clean /t:Rebuild /p:Configuration=Debug /p:Platform=x64
nunit3-console.exe test\UnitTests\bin\Debug\net461\UnitTests.dll --result=nunit-test-results.xml;format=nunit2 --labels=On
dotCover.exe analyse .\dotCover\coverageDebug.xml

非常感谢任何帮助。

0 个答案:

没有答案