That’s because you don’t provide a path to a folder with only coverage reports, and the scanner will open all files in $(Build.SourcesDirectory)\testresults\*
and see if they’re valid coverage reports or not.
11:55:53.492 INFO: Parsing the Visual Studio coverage XML report D:\BuildAgents\Agent1\_work\8\s\testresults\result.coveragexml
11:55:53.492 INFO: Adding this code coverage report to the cache for later reuse: D:\BuildAgents\Agent1\_work\8\s\testresults\result.coveragexml
11:55:53.492 INFO: Sensor VB.NET Tests Coverage Report Import [vbnet] (done) | time=16ms
I just realized now that you are using SonarQube 7.9, and since then we have greatly improved the debug logging of coverage importing. Can you please update the SonarCSharp and SonarVBNet plugins to the latest version (from the SQ Marketplace on your instance) or at least 8.1 where we improved the verbose logging.
And then redo the verbose scan and add the logs.
Also - can you verify the coveragexml file is not empty?