Sonarqube coverage with opencover and Nunit -


we using sonarqube 4.5.7 (sonarqube scanner msbuild 2.1) nunit , opencover. test execution successful , metrics correctly reported in dashboard. coverage section in sonar dashboard blank , coverage xml shows "module skippeddueto="missingpdb"" application module

below configuration have used in jenkins

"c:\program files (x86)\msbuild\14.0\bin\msbuild.exe" sample\app.sln /t:rebuild /p:configuration=debug "c:\program files (x86)\opencover\opencover.console.exe" -register:user -targetdir:"…\sample\app.tests\app.correction\bin\debug" -target:"c:\program files (x86)\nunit 2.6.4\bin\nunit-console.exe" -targetargs:" …\sample\app.tests\app.correction\bin\debug \app.dll /nologo /noshadow" -output:coverage.report.xml 

finally found solution problem. in case indeed problem quotes, wrapping complete targetargs, shown below fixed problem

"-targetargs: …\sample\app.tests\app.correction\bin\debug \app.dll /nologo /noshadow"


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -