Hey in one of our Projects we have encountered a strange issue. The project is in Typescript and during the introduction of branch support and PR decoration we found out, that currently, we have no code coverage. We have Typescript as the project language and up until a few weeks ago code coverage was working properly.
- SonarQube 18.104.22.16808
- Scanner 22.214.171.1247-linux
- SonarTS 1.8 (build 3332)
We did not do any updates to the above mentioned plugins and altough I can see there is a newer version of SonarQube as well as SonarTS available this seems odd to me.
The issue is that all files that need to be resolved for the coverage (with LCOV) to work, cannot be resolved. I have gone ahead and resolved one of the filepaths manually and now that file has code coverage. The error message is:
WARN: Could not resolve xx file paths in [coverage/lcov.info], first unresolved path:
With xx beeing the number of files we want code coverage for.
Are there any recommended steps to solve this issue?
When resolving a path from a coverage report, it should be either absolute or relative to project directory. Otherwise corresponding file is not found. What is it in your coverage report? what’s wrong with your paths?
Hello Team, I am seeing same issue for my typescript project. I did see data on lcov.info after the scan. Due to this LCOV path resolve issues, sonar dashboard is not having coverage report (always shows ‘0’). Please do the needful.
My settings are