From 448dfb45119833eb87fd9586c85f96cf65960d66 Mon Sep 17 00:00:00 2001 From: Konstantin Schaper Date: Tue, 19 May 2020 08:03:33 +0200 Subject: [PATCH] Exclude frontend unit tests from sonar qube code coverage --- Jenkinsfile | 1 + pom.xml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c6415c158c..666ca23869 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -199,6 +199,7 @@ Maven setupMavenBuild() { def logConf = "scm-webapp/src/main/resources/logback.ci.xml" mvn.additionalArgs += " -Dlogback.configurationFile=${logConf}" mvn.additionalArgs += " -Dscm-it.logbackConfiguration=${logConf}" + mvn.additionalArgs += " -Dsonar.coverage.exclusions=**/*.test.ts,**/*.test.tsx" if (isMainBranch() || isReleaseBranch()) { // Release starts javadoc, which takes very long, so do only for certain branches diff --git a/pom.xml b/pom.xml index d31b19a89c..84db3eba31 100644 --- a/pom.xml +++ b/pom.xml @@ -954,7 +954,7 @@ **/*StoreFactory.java,**/*UserPassword.js ./scm-ui/target/frontend/buildfrontend-node/node-v${nodejs.version}-linux-x64/bin/node - **/*.test.ts + **/*.test.ts,**/*.test.tsx