-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathjacoco.gradle
More file actions
26 lines (21 loc) · 897 Bytes
/
jacoco.gradle
File metadata and controls
26 lines (21 loc) · 897 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
subprojects {
if (!['example', 'android', 'android-test', 'jsr223', 'jpms-example'].contains(project.name)) {
apply plugin: 'jacoco'
jacocoTestReport {
dependsOn layout.buildDirectory.files('jacoco/*.exec')
executionData.setFrom(project(':').layout.buildDirectory.files('jacoco/*.exec'))
reports {
xml.required = true
html.required = true
csv.required = true
xml.outputLocation = layout.buildDirectory.file('reports/jacoco/report.xml')
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.collect {
fileTree(dir: it, exclude: '**/party/iroiro/luajava/util/**')
}))
}
}
jacocoTestReport.shouldRunAfter project(':example').tasks.named('test')
}
}