-
Notifications
You must be signed in to change notification settings - Fork 6
/
tests.gradle
39 lines (34 loc) · 1007 Bytes
/
tests.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
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
reports.junitXml.destination = file("${testResultsDir}/${name}")
}
test {
testLogging {
events 'started', 'passed'
exceptionFormat = 'full'
}
}
jacocoTestReport {
group = "reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.enabled true
html.enabled true
csv.enabled false
}
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
testLogging {
events "passed", "skipped", "failed"
exceptionFormat = 'full'
}
mustRunAfter test
environment 'BASE_URL', "http://localhost"
}