-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
31 lines (26 loc) · 986 Bytes
/
build.gradle.kts
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
30
31
/* (c) https://github.com/MontiCore/monticore */
plugins {
id("base")
id("jacoco-report-aggregation")
id("montiarc.build.repositories")
id("montiarc.build.project-version")
}
dependencies {
jacocoAggregation(project(":generators:ma2java"))
jacocoAggregation(project(":languages:basis"))
jacocoAggregation(project(":languages:montiarc"))
}
reporting.reports.register("jacocoAggregatedTestReport", JacocoCoverageReport::class) {
testType.set(TestSuiteType.UNIT_TEST)
}
tasks.getByName<JacocoReport>("jacocoAggregatedTestReport").reports {
csv.required.set(true)
html.required.set(false)
xml.required.set(false)
csv.outputLocation.set(file("$buildDir/reports/test-coverage/jacocoAggregated.csv"))
html.outputLocation.set(file("$buildDir/reports/test-coverage/jacocoAggregated/html"))
xml.outputLocation.set(file("$buildDir/reports/test-coverage/jacocoAggregated.xml"))
}
tasks.check {
dependsOn(tasks.named<JacocoReport>("jacocoAggregatedTestReport"))
}