-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathclover.gradle
50 lines (39 loc) · 1.19 KB
/
clover.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
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'com.bmuschko:gradle-clover-plugin:3.0.3'
}
}
apply plugin: 'com.bmuschko.clover'
dependencies {
clover 'org.openclover:clover:4.4.1'
}
clover {
excludes = ['**/Application.groovy',
'**/BootStrap.groovy',
'**/UrlMappings.groovy',
'**/*GrailsPlugin.groovy',
'**/*Mock.groovy',
'**/TimezoneMapper.java',
'**/AuditService.groovy'
]
compiler {
encoding = 'UTF-8'
// Override the Java Compiler source and target compatibility settings
sourceCompatibility = '11'
targetCompatibility = '11'
// used to add debug information for Spring applications
debug = true
additionalArgs = '-parameters'
//additionalGroovycOpts = [configscript: project.file('cloverGroovyConfig.groovy').absolutePath]
}
testIncludes = ['**/*Spec.groovy']
includeTasks = ['test'] // We are only running unit tests with coverage
report {
html = true
xml = true
}
targetPercentage = '38.6%' // This is unit test coverage
}