This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinttest.gradle
50 lines (46 loc) · 1.98 KB
/
inttest.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
46
47
48
49
50
idea {
module {
// add the integration tests to the idea test sources for convenience
// this makes idea different to command line config as on the command line
// where there are entirely separate source sets for unit and integration tests
testSourceDirs += file('src/integration-test/java')
testSourceDirs += file('src/integration-test/resources')
}
}
sourceSets {
integrationTest {
java {
srcDir 'src/integration-test/java'
}
resources {
srcDir 'src/integration-test/resources'
}
compileClasspath += sourceSets.main.runtimeClasspath
compileClasspath += sourceSets.test.runtimeClasspath
runtimeClasspath += configurations.test_deps_runtime
}
}
task intTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath += sourceSets.integrationTest.runtimeClasspath
reports.junitXml.destination = file("${project.buildDir}/int-test-results")
reports.html.destination = file("${project.buildDir}/int-test-reports")
workingDir = rootDir
include 'uk/gov/ida/integrationtest/**'
}
task consumerContractTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath += sourceSets.integrationTest.runtimeClasspath
reports.junitXml.destination = file("${project.buildDir}/consumer-contract-test-results")
reports.html.destination = file("${project.buildDir}/consumer-contract-test-reports")
workingDir = rootDir
include 'uk/gov/ida/contracttest/consumer/**'
}
task providerContractTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath += sourceSets.integrationTest.runtimeClasspath
reports.junitXml.destination = file("${project.buildDir}/provider-contract-test-results")
reports.html.destination = file("${project.buildDir}/provider-contract-test-reports")
workingDir = rootDir
include 'uk/gov/ida/contracttest/provider/**'
}