msbuild - How to use OpenCover code coverage using Build.Cake file -
my requirement run opencover code coverage using build.cake file , publish code coverage results on sonarqube server.
set up:[project setup][1]
when invoke opencover using simple command line utility described in following url: https://docs.sonarqube.org/pages/viewpage.action?pageid=6389770#codecoverageresultsimport(c#,vb.net)-opencover, see opencover works perfactly fine , publishes code coverage sonarqube server
msbuild.sonarqube.runner.exe begin /k:"sonarqube_project_key" /n:"sonarqube_project_name" /v:"sonarqube_project_version" /d:sonar.cs.opencover.reportspaths="%cd%\opencover.xml" msbuild "%localappdata%\apps\opencover\opencover.console.exe" -output:"%cd%\opencover.xml" -register:user -target:"%vsinstalldir%\common7\ide\commonextensions\microsoft\testwindow\vstest.console.exe" -targetargs:"unittestproject1\bin\debug\unittestproject1.dll" msbuild.sonarqube.runner.exe end
trying achieve same using cake not working. getting following error: no tool started....
cakefile contents [cake file contents][2]
can me here achieving same using cake file or @ least can let me know why facing issue, tool expecting start , find tool?
wiki
Comments
Post a Comment