-
Notifications
You must be signed in to change notification settings - Fork 46
/
integration_tests.gradle
38 lines (31 loc) · 1.21 KB
/
integration_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
sourceSets {
integrationTests {
java.srcDir 'src/integration_test/java'
resources.srcDir 'src/integration_test/resources'
}
}
dependencies {
integrationTestsImplementation sourceSets.main.output
integrationTestsImplementation configurations.testImplementation
}
task integrate(type: Test) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = 'Runs the integration tests.'
testClassesDirs = sourceSets.integrationTests.output.classesDirs
classpath = sourceSets.integrationTests.runtimeClasspath
maxHeapSize = '1024m'
mustRunAfter test
testLogging {
exceptionFormat "full" // default is "short"
// uncomment the following to see the unit test progress in the output
//events "started", "passed", "skipped", "failed", "standardOut", "standardError"
events "passed", "skipped", "failed", "standardOut", "standardError"
// set to false to disable detailed failure logs
showExceptions true
// enable to see standard out and error streams inline with the test results
showStandardStreams true
}
// Fail the 'test' task on the first test failure
failFast = true
}
check.dependsOn integrate