-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegration-test.gradle
executable file
·37 lines (31 loc) · 1.07 KB
/
integration-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
sourceSets {
integrationTest {
java {
compileClasspath += sourceSets.main.output + configurations.testCompile
runtimeClasspath += output + compileClasspath + configurations.testRuntime
srcDir file('src/integrationTest/java')
}
resources.srcDirs file('src/integrationTest/resources')
}
}
idea {
module {
testSourceDirs += sourceSets.integrationTest.java.srcDirs
testResourceDirs += sourceSets.integrationTest.resources.srcDirs
scopes.TEST.plus += [configurations.integrationTestCompile]
}
}
task integrationTest(type: Test) {
description = 'Runs the integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
}
check.dependsOn integrationTest
dependencies {
testCompile('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit', module: 'junit;'
}
testCompile 'com.h2database:h2:1.4.199'
}