diff --git a/Makefile b/Makefile index 7bf8744f..6b623273 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,10 @@ test-nextflow: clean nextflow-git compile check #coverage test-all: clean compile-all check #coverage +coverage: + ./gradlew jacocoTestReport + open plugins/nf-quilt/build/reports/jacoco/test/html/index.html + # # Create packages # diff --git a/build.gradle b/build.gradle index 01192f00..732f09d5 100644 --- a/build.gradle +++ b/build.gradle @@ -155,6 +155,19 @@ allprojects { } } + 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 // https://youtrack.jetbrains.com/issue/IDEA-129282 sourceSets { diff --git a/plugins/nf-quilt/build.gradle b/plugins/nf-quilt/build.gradle index 062e0cce..0514ba46 100644 --- a/plugins/nf-quilt/build.gradle +++ b/plugins/nf-quilt/build.gradle @@ -24,7 +24,7 @@ plugins { } useLatestVersions { - // A blacklist of dependencies to not update, in the format of group:name + // A blacklist of dependencies to update, in the format of group:name updateBlacklist = [ 'com.quiltdata:quiltcore', 'org.codehaus.groovy:groovy', @@ -115,3 +115,12 @@ dependencies { test { useJUnitPlatform() } + +jacocoTestReport { + reports { + xml.required = true + csv.required = true + html.required = true + } +} +