2013-04-05 76 views
0

我試圖通過聲吶運行代碼覆蓋率並打開封面。我使用了以下內容:Sonar正在使用OpenCover運行Gallio,但Sonar仍在報告代碼覆蓋範圍:0%

聲納3.5
C#插件生態系統2.0
OpenCover 1313年4月5日
加利奧v3.4.14.0
聲納亞軍2.1

當我運行聲納亞軍的測試運行和OpenCover運行,報告位於.sonar文件夾中,但聲納網站從未更新,覆蓋率保持在0%。

這個問題似乎類似於this

這裏有

# 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/** 

+0

你問他們的論壇上的聲納傢伙http://sonar.15.n6.nabble.com/? – 2013-04-06 21:12:45

回答

1

你面對這個bug我的聲納項目屬性:http://jira.codehaus.org/browse/SONARDOTNT-301

它是固定的,將在2.1可用將在幾天後發佈。

+0

感謝您的回覆。我將在發佈插件時更新插件。 – 2013-04-08 15:40:58

相關問題