I’ve prepared .coverage file, codecoverage.xml and .trx file and publishing to sonarqube server but still code coverage is not getting displayed. It shows unit tests count properly.
I’ve tried certain online articles and it seems I have set up the reports path properly but somehow it’s not showing code coverage.
2022-06-21T09:25:56.7708193Z 09:25:56.724 INFO: Found 5 MSBuild VB.NET projects: 4 MAIN projects. 1 TEST project.
2022-06-21T09:25:56.7708617Z 09:25:56.724 INFO: Sensor VB.NET [vbnet] (done) | time=23811ms
2022-06-21T09:25:56.7709024Z 09:25:56.724 INFO: Sensor VB.NET Tests Coverage Report Import [vbnet]
2022-06-21T09:25:56.7709700Z 09:25:56.724 DEBUG: Analyzing coverage with wildcardPatternFileProvider with base dir 'XXX\actions-runner-win-x64-2.287.1\_work\abc\.' and file separator '\'.
2022-06-21T09:25:56.7710839Z 09:25:56.724 DEBUG: Pattern matcher extracted prefix/absolute path
Did not find deterministic source path in 'D:\abc\_work\xyz\foldername\XXX\My Project\Settings.Designer.vb'. Will skip this coverage entry. Verify sonar.sources in .sonarqube\out\sonar-project.properties.
Is this something breaking?
2022-06-21T09:25:56.7884035Z 09:25:56.755 DEBUG: Skipping 'D:\actions-runner\actions-runner-win-x64-2.287.1\_work\aaa\aaa\aaa\aaa\aaa\AllFormsTester.vb' as it is a test file.
I have also got this line. But the code is there so what could be wrong?
Also what is the meaning of this line?
2022-06-21T09:25:56.7904399Z 09:25:56.755 INFO: Coverage Report Statistics: 9 files, 0 main files, 0 main files with coverage, 9 test files, 0 project excluded files, 0 other language files.