Hi,
I'm trying to send a "lcov.info" report file to Sonar on cloud. The file contains the test coverage report.
Just after the file is read on sonar, I have the following issue :
11:01:35.669 WARN: Could not resolve 2 file paths in [/opt/atlassian/pipelines/agent/build/coverage/posteDev/lcov.info]
11:01:35.669 DEBUG: Unresolved paths:
/opt/atlassian/pipelines/agent/build/src/polyfills.ts
/opt/atlassian/pipelines/agent/build/src/test.ts
11:01:35.669 INFO: Sensor SonarJS Coverage [javascript] (done) | time=20ms
I dont understand why these files are requested during this process.
Here is my pipeline config:
[...]
- npm run test:ci
- pipe: sonarsource/sonarcloud-scan:1.0.1
variables:
EXTRA_ARGS: '-Dsonar.sources=src/app
-Dsonar.tests=src
-Dsonar.test.inclusions="**/*.spec.ts"
-Dsonar.coverage.exclusions="**/node_modules/**,**/*.spec.ts"
-Dsonar.javascript.lcov.reportPaths=coverage/posteDev/lcov.info'
DEBUG: "true"
[...]