Added jacoco for coverage.
@@ -9,6 +9,7 @@ buildscript {
plugins {
id "io.spring.nohttp" version "0.0.8"
id "checkstyle"
+ id "jacoco"
}
if (JavaVersion.current().isJava8Compatible())
@@ -27,6 +28,7 @@ allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'checkstyle'
+ apply plugin: 'jacoco'
repositories {
mavenCentral()
@@ -72,6 +74,8 @@ subprojects {
systemProperty 'bc.test.data.home', bcTestDataHome
maxHeapSize = "1536m"
+ finalizedBy jacocoTestReport
+
filter {
includeTestsMatching "AllTest*"
}
@@ -89,6 +93,15 @@ subprojects {
sourceSets = [project.sourceSets.main]
}
+
+ jacocoTestReport {
+ dependsOn test // tests are required to run before generating the report
+ }
+
+ jacoco {
+ reportsDirectory = layout.buildDirectory.dir("jacoco")
+ }
+
}
test.dependsOn([':core:test', ':prov:test', ':pkix:test', ':mail:test', 'pg:test', ':tls:test'])
