Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

apply plugin: "jacoco"

def VAGRANT_DIR = "$System.env.VAGRANT_DIR"
def jacocoExecFile = "$VAGRANT_DIR/jacoco/" + parent.name + "/jacoco.exec"
def jacocoClassDumpFile = "${buildDir}/jacoco/classpathdumps"

ant.properties['env.VAGRANT_DIR'] = VAGRANT_DIR
ant.properties['env.ROOT_DIR'] = rootDir
ant.properties['env.ROOT_NAME'] = parent.name
ant.properties['env.SERVICE_NAME'] = 'VarUtilityServices'

ant.importBuild '../generate-code-coverage-report.xml'

jacoco {
toolVersion = "0.7.7.201606060606"
reportsDir = file("$buildDir/customJacocoReportDir")
}

test {
jacoco {
append = false
destinationFile = file("$jacocoExecFile")
classDumpFile = file("$jacocoClassDumpFile")
}
}

task resourceIntegrationTest( type: Test, dependsOn: jar ) {
jacoco {
append = true
destinationFile = file("$jacocoExecFile")
classDumpFile = file("$jacocoClassDumpFile")
}
testClassesDir = sourceSets.resIntTest.output.classesDir
classpath = sourceSets.resIntTest.runtimeClasspath
}

jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/jacocoHtml"
}
}