forked from bobcarroll/jira-client
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild-jacoco.gradle
More file actions
29 lines (24 loc) · 834 Bytes
/
build-jacoco.gradle
File metadata and controls
29 lines (24 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
allprojects {
apply plugin: 'jacoco'
jacoco {
toolVersion = '0.8.7'
}
jacocoTestReport {
// Generate the reports using all exec files on the path, not only the one that has just been created
executionData.setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
reports {
xml.required = true
xml.outputLocation = file("$buildDir/jacoco/xml/jacocoTestReport.xml")
html.required = true
html.outputLocation = file("$buildDir/jacoco/html")
csv.required = false
}
}
tasks.withType(Test) {
testTask ->
doFirst {
jacocoTestReport.reports.xml.destination file("$buildDir/jacoco/xml/jacoco${testTask.name}Report.xml")
}
finalizedBy jacocoTestReport
}
}