ソナーを介してオープン カバーでコード カバレッジを実行しようとしています。私は以下を使用しています:
Sonar 3.5
C# プラグイン Ecosystem 2.0
OpenCover 4.5.1313
Gallio v3.4.14.0
sonar-runner 2.1
sonar-runner を実行してテストを実行し、OpenCover を実行すると、レポートは .sonar フォルダーにありますが、ソナー Web サイトは更新されず、カバレッジは 0% のままです。
問題はこれに似ているようです
ここに私のソナープロジェクトのプロパティがあります
# Project identification
sonar.projectKey=Simple.Project
sonar.projectVersion=1
sonar.projectName=Simple
# Info required for Sonar
sonar.sources=.
sonar.language=cs
#Core C# Settings
#sonar.dotnet.visualstudio.solution.file=Source/TAMPWebsite/TAMPWebsite.sln
sonar.silverlight.4.mscorlib.location=C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Silverlight/v4.0
sonar.dotnet.excludeGeneratedCode=true
sonar.dotnet.4.0.sdk.directory=C:/WIndows/Microsoft.NET/Framework/v4.0.30319
sonar.dotnet.version=4.0
#Gendarme
sonar.gendarme.mode=
sonar.sourceEncoding=UTF-8
# Gallio / Unit Tests
sonar.gallio.mode=
sonar.gallio.coverage.tool=OpenCover
sonar.gallio.runner=IsolatedProcess
sonar.gallio.installDirectory=C:/Program Files (x86)/Gallio
sonar.dotnet.visualstudio.testProjectPattern=*Test*
sonar.opencover.installDirectory=C:/Program Files (x86)/OpenCover/
# FXCop
sonar.fxcop.mode=skip
#StyleCop
sonar.stylecop.mode=skip
#NDeps
sonar.ndeps.mode=skip
#sonar.switchoffviolations.allfile=DatabaseMigrations
#exclusions
#sonar.exclusions=**generated*,**T4MVC**,**/DatabaseMigrations/**