Som
Som

Reputation: 21

AEM as a Cloud Service - SonarQube REACT Code Coverage

Context

We are implementing a hybrid implementation with AEM + REACT using AEM as a Cloud Service. We are having our REACT code coverage in *.tsx files under ui.frontend module.

We have configured "@types/jest": "^29.5.14" and "test:coverage": "react-scripts test --coverage --watch all", in ui.frontend/package.json. We are using npm run test:coverage to generate coverage folder under ui.frontend which has lcov-report, coverage-final.json, clover.xml, lcov.info.

The path to the lcov.info has been placed on the project root pom as -

<sonar.javascript.lcov.reportPaths>${project.basedir}/../coverage/lcov.info</sonar.javascript.lcov.reportPaths> <sonar.dynamic>reuseReports</sonar.dynamic>

Concern

REACT code coverage is not reflecting on SonarQube 9.9 LTS Instance or on Adobe Cloud Manager Quality or Deployment Pipeline Code Scan Summary report.

Queries

Thank You so much in advance for all the knowledge shared !!

Upvotes: 1

Views: 19

Answers (0)

Related Questions