-
Notifications
You must be signed in to change notification settings - Fork 1
/
integration-tests.gradle
37 lines (34 loc) · 1.07 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
apply plugin: 'idea'
apply plugin: 'groovy'
sourceSets {
integrationTest {
groovy {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntimeOnly.extendsFrom testRuntimeOnly
}
task integrationTest(type: Test) {
description = 'Runs integration tests.'
group = 'verification'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
shouldRunAfter test
outputs.upToDateWhen { false }
}
check.dependsOn integrationTest
// Allow running integration tests in IntelliJ
idea {
module {
sourceSets.integrationTest.allSource.srcDirs.each { srcDir -> module.testSourceDirs += srcDir }
}
}
dependencies {
integrationTestImplementation group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.6', ext: 'pom'
integrationTestImplementation group: 'org.spockframework', name: 'spock-core', version: '1.3-groovy-2.5'
}