.net - Sonar is running Gallio with OpenCover but Sonar is still reporting code coverage: 0% -
i trying run code coverage open cover through sonar. using following:
sonar 3.5
c# plugins ecosystem 2.0
opencover 4.5.1313
gallio v3.4.14.0
sonar-runner 2.1
when run sonar-runner tests run , opencover runs, reports in .sonar folder sonar website never updated , coverage remains @ 0%.
the issue seems similar this
here sonar-project-properties
# project identification sonar.projectkey=simple.project sonar.projectversion=1 sonar.projectname=simple # info required 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/**
you're facing bug: http://jira.codehaus.org/browse/sonardotnt-301
it fixed , available in 2.1 release out in couple of days.
Comments
Post a Comment