2013-04-05 77 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

相关问题