- GitHub URL: https://github.com/SAP/cloud-commerce-spartacus-storefront
- Travis CI https://travis-ci.org/SAP/cloud-commerce-spartacus-storefront
- Languages of the repository: typescript (angular 8)
- SonarCloud URL: https://sonarcloud.io/dashboard?id=sap_cloud-commerce-spartacus-storefront
In our open source project, SonarCloud is not reflecting the right coverage. I just added multiple lcov reports for our code repository (we have a monorepo) and the coverage is 0 now. I did a PR to track it down and the paths to the reports are correct and the reports are there. Here is the travis build log that proves it:
https://travis-ci.org/SAP/cloud-commerce-spartacus-storefront/builds/632407158
INFO: Sensor SonarJS Coverage [javascript]
762INFO: Analysing [/home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/cds/lcov.info, /home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/core/lcov.info, /home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/storefront/lcov.info]
763WARN: Could not resolve 1 file paths in [/home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/cds/lcov.info, /home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/core/lcov.info, /home/travis/build/SAP/cloud-commerce-spartacus-storefront/coverage/storefront/lcov.info], first unresolved path: /home/travis/build/SAP/cloud-commerce-spartacus-storefront/projects/core/src/asm/store/selectors/csagent-token.selectors.js
764INFO: Sensor SonarJS Coverage [javascript] (done) | time=404ms
But on the main Sonar scan (our develop branch) the SonarJS step is skipped altogether, and therefore our main coverage is 0%.
https://sonarcloud.io/dashboard?id=sap_cloud-commerce-spartacus-storefront
Here are our sonar settings: https://github.com/SAP/cloud-commerce-spartacus-storefront/blob/develop/sonar-project.properties
Any help would be much appreciated. Thanks!