forked from thombergs/code-examples
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (77 loc) · 1.87 KB
/
build.gradle
File metadata and controls
93 lines (77 loc) · 1.87 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
jcenter()
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 11
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.2'
testCompile 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testCompile 'org.assertj:assertj-core:2.6.0'
}
jacoco {
toolVersion = "0.8.5"
}
//jacocoTestReport {
// afterEvaluate {
// classDirectories = files(classDirectories.files.collect {
// fileTree(dir: it, exclude: [
// 'io/reflectoring/coverage/ignored/**',
// 'io/reflectoring/coverage/part/**'
// ])
// })
// }
//}
jacocoTestCoverageVerification {
violationRules {
// Uncomment the following rules to see if they're failing.
// The rules are commented out so that the build is green!
// rule {
// element = 'METHOD'
// limit {
// counter = 'LINE'
// value = 'COVEREDRATIO'
// minimum = 1.0
// }
// excludes = [
// 'io.reflectoring.coverage.part.PartlyCovered.partlyCovered(java.lang.String, boolean)',
// ]
// }
// rule {
// element = 'CLASS'
// limit {
// counter = 'LINE'
// value = 'COVEREDRATIO'
// minimum = 1.0
// }
// excludes = [
// 'io.reflectoring.coverage.part.PartlyCovered',
// 'io.reflectoring.coverage.ignored.*',
// 'io.reflectoring.coverage.part.NotCovered'
// ]
// }
// rule {
// element = 'CLASS'
// includes = [
// 'io.reflectoring.coverage.part.PartlyCovered'
// ]
// limit {
// counter = 'LINE'
// value = 'COVEREDRATIO'
// minimum = 0.8
// }
// }
}
}
test.finalizedBy jacocoTestReport
check.dependsOn jacocoTestCoverageVerification
test {
useJUnitPlatform()
}