From 5b139b92f28b43cbd967a2482d66cb68c26b6085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Mino?= Date: Sun, 22 Sep 2024 22:37:31 +0200 Subject: [PATCH] test(sonar): update path of lcov report for the combined frontend code coverage Also removed now unnecessary exclusions --- .nycrc.json | 2 +- sonar-project.properties | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.nycrc.json b/.nycrc.json index e655757933b..2e13a11327a 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -1,6 +1,6 @@ { "extension": [".js", ".cjs", ".mjs", ".ts", ".vue"], - "reporter": ["html", "json", "text-summary"], + "reporter": ["html", "json", "lcov", "text-summary"], "report-dir": "target/frontend-coverage/combined", "temp-dir": "target/.nyc_output", "check-coverage": true, diff --git a/sonar-project.properties b/sonar-project.properties index f4265bece24..c6c83635357 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -14,17 +14,13 @@ sonar.java.codeCoveragePlugin=jacoco sonar.junit.reportPaths=target/surefire-reports,target/failsafe-reports sonar.testExecutionReportPaths=target/test-results/TESTS-results-sonar.xml -sonar.javascript.lcov.reportPaths=target/test-results/lcov.info +sonar.javascript.lcov.reportPaths=target/frontend-coverage/combined/lcov.info sonar.sourceEncoding=UTF-8 sonar.exclusions=\ src/main/resources/**,\ - src/main/webapp/app/main.ts,\ - src/main/webapp/app/router/index.ts,\ - src/main/webapp/app/**/application/*Provider.ts,\ src/main/webapp/app/shared/alert/infrastructure/primary/WindowApplicationListener.ts,\ src/main/webapp/app/module/secondary/RestManagementRepository.ts,\ - src/main/webapp/app/injections.ts,\ src/main/webapp/content/**/*.*,\ target/classes/static/**/*.*,\ src/main/glyph/css/**