forked from cloudfoundry-community/autosleep
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.gradle
45 lines (39 loc) · 1.03 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
apply plugin: 'findbugs'
apply plugin: 'pmd'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
pmd {
consoleOutput = true
}
checkstyle {
toolVersion = "6.11.2"
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
test {
testLogging {
events "passed", "skipped", "failed", "standardError"
displayGranularity 2
/* uncomment to show test details
showStandardStreams = true
*/
}
// to retrieve profile using -Dspring.profiles.active={PROFILE}
systemProperties = System.properties
systemProperties['user.dir'] = workingDir
}
dependencies {
//Starter tests: spring test, mockito, ...
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.aspectj:aspectjweaver'
//Test for annotations
testCompile "com.fasterxml.jackson.module:jackson-module-parameter-names:$jacksonParameterNames"
}
tasks.withType(FindBugs) {
reports {
xml.enabled false
html.enabled true
}
}
findbugs {
effort = "default"
}