blob: f603a4e4c9df20526cc1a5aaa01b7a1773ddd227 (
plain) (
blame)
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
|
apply plugin: 'jacoco'
dependencies {
testCompile "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testCompile "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
testCompile "org.hamcrest:hamcrest:${hamcrestVersion}"
}
test {
useJUnitPlatform {
excludeTags 'slow'
}
}
task slowTest(type: Test) {
useJUnitPlatform()
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
}
}
test.finalizedBy(jacocoTestReport)
|