Skip to content

Commit

Permalink
trim config
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Sep 3, 2024
1 parent c6ee789 commit 5e848bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 57 deletions.
52 changes: 0 additions & 52 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ plugins {
id 'idea'
id 'se.patrikerdes.use-latest-versions' version '0.2.18'
id 'com.github.ben-manes.versions' version '0.51.0'
id 'jacoco'
}

// Add ability to test with upcoming versions of Groovy
Expand Down Expand Up @@ -63,7 +62,6 @@ allprojects {
apply plugin: 'idea'
apply plugin: 'groovy'
apply plugin: 'java-library'
apply plugin: 'jacoco'

java {
toolchain {
Expand Down Expand Up @@ -116,56 +114,6 @@ allprojects {

test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
}

jacoco {
toolVersion = "0.8.12"
reportsDirectory = layout.buildDirectory.dir('reports/jacoco')
}

jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}

jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.5
}
}

rule {
enabled = false
element = 'CLASS'
includes = ['org.gradle.*']

limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 0.3
}
}
}
}

jacoco {
toolVersion = '0.8.12'
reportsDirectory = layout.buildDirectory.dir('reports/jacoco')
}

jacocoTestReport {
reports {
xml.required = true
csv.required = true
html.required = true
}
}

// this is required due to this IDEA bug
Expand Down
11 changes: 6 additions & 5 deletions plugins/nf-quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ test {
}

jacocoTestReport {
reports {
xml.required = true
csv.required = true
html.required = true
}
dependsOn test // tests are required to run before generating the report
}

jacoco {
toolVersion = "0.8.12"
}


0 comments on commit 5e848bc

Please sign in to comment.