mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-04 11:20:53 +01:00
Exclude frontend unit tests from sonar qube code coverage
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -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
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -954,7 +954,7 @@
|
||||
<sonar.cpd.exclusions>**/*StoreFactory.java,**/*UserPassword.js</sonar.cpd.exclusions>
|
||||
|
||||
<sonar.nodejs.executable>./scm-ui/target/frontend/buildfrontend-node/node-v${nodejs.version}-linux-x64/bin/node</sonar.nodejs.executable>
|
||||
<sonar.coverage.exclusions>**/*.test.ts</sonar.coverage.exclusions>
|
||||
<sonar.coverage.exclusions>**/*.test.ts,**/*.test.tsx</sonar.coverage.exclusions>
|
||||
|
||||
<!-- Possibility to skip only the unit test. Can be useful when running only integration tests.
|
||||
This can be used from the command line as follows: mvn <goals> -DskipUnitTests -->
|
||||
|
||||
Reference in New Issue
Block a user