-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathtest.gradle
77 lines (67 loc) · 1.8 KB
/
test.gradle
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
test {
useJUnitPlatform()
finalizedBy 'jacocoTestReport'
}
jacocoTestReport {
reports {
html.enabled true
xml.enabled true
}
finalizedBy 'jacocoTestCoverageVerification'
}
jacocoTestCoverageVerification {
violationRules {
rule {
element = 'PACKAGE'
limit {
counter = 'CLASS'
value = 'COVEREDRATIO'
maximum = 1.00
}
excludes = [
'io.github.raeperd.realworld',
]
}
rule {
element = "CLASS"
limit {
counter = 'METHOD'
value = 'COVEREDRATIO'
minimum = 1.00
}
excludes = [
'io.github.raeperd.realworld.RealWorldApplication',
'io.github.raeperd.realworld.application.security.JWTAuthenticationFilter.JWT'
]
}
rule {
element = "METHOD"
limit {
counter = 'INSTRUCTION'
value = 'COVEREDRATIO'
minimum = 1.00
}
excludes = [
'io.github.raeperd.realworld.**main**',
'io.github.raeperd.realworld.**equals(java.lang.Object)',
'io.github.raeperd.realworld.application.security.JWTAuthenticationFilter.JWT.getCredentials()'
]
}
rule {
element = "CLASS"
limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 100
}
}
rule {
element = "METHOD"
limit {
counter = 'LINE'
value = 'TOTALCOUNT'
maximum = 15
}
}
}
}