Unit-Tests und Code-Coverage werden, die zeigen, wie 0% von Sonar

Ich versuche, unit testing und code coverage für C# - Projekt. Ich bin mit sonar runner wie der Analysator, Gallio 3.4.14 OpenCover4.5.1
Dies ist das sonar-Projekt.Eigenschaften Datei:

sonar.projectKey=Foo

sonar.projectName=Foo-SonarQube Runner

sonar.projectVersion=1.0

# Path to the source directories (required)
sonar.sources=.

sonar.language=cs

sonar.sourceEncoding=UTF-8

sonar.dotnet.visualstudio.solution.file=Foo.sln

sonar.silverlight.4.mscorlib.location=C:\Program Files (x86)\Reference Assemblies
\Microsoft\Framework\Silverlight\v5.0

sonar.dotnet.excludeGeneratedCode=true

sonar.dotnet.4.0.sdk.directory=C:/WIndows/Microsoft.NET/Framework/v4.0.30319
sonar.dotnet.version=4.0


sonar.gallio.runner=IsolatedProcess

sonar.gallio.coverage.tool=OpenCover 

sonar.donet.visualstudio.testProjectPattern=**.Tests;   **.UnitTests

sonar.opencover.installDirectory=C:/Program Files (x86)/OpenCover
sonar.dotnet.test.assemblies=FooUnitTests\bin\Release\FooUnitTests.dll 

Erfolgreich ausgeführt, aber in den logs sehe ich, dass Gallio nicht ausführen:

No assembly to check with Gendarme

Skipping the non generated assembly of project : Foo

No assembly to check with NDeps

Gallio won't execute as there are no test projects.

Jede Hilfe wird dankbar sein

InformationsquelleAutor User | 2013-11-11

Schreibe einen Kommentar