I am using sonarqube version 6.1 and i have sonarqube scanning task integrated with my azure CI build . I want to calculate code coverages too , so I have added ‘VsTest’ task in my CI build (as mentioned in sonarqube-vsts integration documentation).
I am getting error in ‘VsTest’ task when a build is queued . (All other sonarqube task is running fine)
The error is as below :
‘Error: The process ‘C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe’ failed with exit code 1
VsTest task failed.’
Please let me know how can this be fixed . Build server I am using has VS2017 on it.
Seems that the coverage tool itself is encountering an error while executing. Could you please try to run it alone from a commandline tool and see if you get the same error ? Then you’d have maybe more details on what’s happening.
I don’t get an error when running the same in command line .
Ok then, could you please post the full log of the task, with system.debug=true please ?
Otherwise it’ll be quite hard to troubleshoot.
Thank you !