“I want to incorporate a coverage report into Sonar. We’re utilizing an Nx monorepo with TypeScript, and we’re generating an lcov.info file as the coverage report. We pass this file to Sonar using the sonar-project.properties value below, which is generated under the coverage folder:
sonar.typescript.lcov.reportPaths=../../coverage/apps/app-name/jest/lcov.info
However, I’m encountering the following warning, and consequently, I’m unable to see the coverage report in SonarCloud:
INFO: Analysing [/home/circleci/project/apps/ics-ui-web/../../coverage/apps/app-name/jest/lcov.info]
WARN: Could not resolve 189 file paths in [/home/circleci/project/apps/app-name/../../coverage/apps/app-name/jest/lcov.info]
WARN: First unresolved path: src/generated/graphql.tsx (Run in DEBUG mode to get the full list of unresolved paths)
WARN: Found 1 inconsistency in the coverage report. Re-running the analysis in debug mode may provide further details.
INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=23ms
INFO: Sensor Import of ESLint issues [javascript]”
I am seeking a resolution for this issue
Sandeep is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.