I’m using :
SonarQube Version 6.7.5 (build 38563)
Sonar Scanner plugin in AzureDevOps
In general, all build process in going in Azure DevOps pipelines in on-premise agents
Can’t collect CodeCoverage report after unit tests.
If I’m using VisualStudio Tests assembly with enabled CodeCoverage tests run failed without any reason.
I’ve installed coverlet.msbuild package in my solution and run MSBuild with options :
/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=$(Build.SourcesDirectory)\CodeCoverage\coverage.opencover.xml
After that got only one message in the Run Code Analysis task :
15:35:34.08 Attempting to locate the CodeCoverage.exe tool…
15:35:34.096 Attempting to locate the CodeCoverage.exe tool using setup configuration…
15:35:34.112 Code coverage command line tool: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
15:35:34.112 Fetching code coverage report information from TFS…
15:35:34.112 Attempting to locate a test results (.trx) file…
15:35:35.002 Looking for TRX files in: D:\vstsagent_gafvso1_work\8\TestResults
15:35:35.002 No test results files found
15:35:35.815 Did not find any binary coverage files in the expected location.
15:35:35.815 Falling back on locating coverage files in the agent temp directory.
15:35:35.815 Searching for coverage files in D:\vstsagent_gafvso1_work_temp
15:35:35.815 No coverage files found in the agent temp directory.
Maybe someone could help me with this issue, I’me ready to share more information when it will be needed.