diff options
author | 2020-08-19 16:56:32 +0100 | |
---|---|---|
committer | 2020-08-19 16:56:37 +0100 | |
commit | 34d6d486318bf7922ff6c5e0897370f5b4e60395 (patch) | |
tree | 3406f978a0172a87b3e0db399c99cefab82eac24 | |
parent | 6afcd09f4962d2854e9f8cff16bd8e719d93a911 (diff) |
JS Coverage Report directory
Moved the generated Jest Coverage report from policy-gui/gui-pdp-monitoring/src/webapp/coverage to policy-gui/target/code-coverage in order for SonarCloud to display the JS Code Coverage results.
Issue-ID: POLICY-2610
Change-Id: I1d86203afa45ad1b0a51d729fec4326607585988
Signed-off-by: waynedunican <wayne.dunican@est.tech>
-rw-r--r-- | gui-pdp-monitoring/src/webapp/package.json | 3 | ||||
-rw-r--r-- | pom.xml | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gui-pdp-monitoring/src/webapp/package.json b/gui-pdp-monitoring/src/webapp/package.json index b010413..793d6ba 100644 --- a/gui-pdp-monitoring/src/webapp/package.json +++ b/gui-pdp-monitoring/src/webapp/package.json @@ -26,13 +26,14 @@ }, "jest": { "collectCoverage": true, + "coverageDirectory": "../../../target/code-coverage", "transform": { "^.+\\.[t|j]sx?$": "babel-jest" }, "testResultsProcessor": "jest-sonar-reporter" }, "jestSonar": { - "reportPath": "reports", + "reportPath": "../../../target/reports", "reportFile": "test-reporter.xml", "indent": 4, "sonar56x": true @@ -42,6 +42,7 @@ <properties> <policy.common.version>1.7.1-SNAPSHOT</policy.common.version> <policy.models.version>2.3.1-SNAPSHOT</policy.models.version> + <sonar.javascript.lcov.reportPaths>target/code-coverage/lcov.info</sonar.javascript.lcov.reportPaths> </properties> <modules> |