-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathintTest.gradle
49 lines (41 loc) · 1.23 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
configurations {
intTestCompile.extendsFrom testCompile
intTestRuntime.extendsFrom testRuntime
}
sourceSets {
intTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
resources.srcDir file('src/intTest/resources')
resources.srcDirs += new File(System.getenv('A') + '/test-certificates/')
}
}
tasks.withType(Test) {
// reset the report destinations so that intTests go to their own page
//reports.html.destination = file("${reporting.baseDir}/${name}")
reports.html.destination = file(reporting.baseDir.getAbsolutePath() + '/' + name)
// Assign all Java system properties from
// the command line to the tests
systemProperties System.properties
}
task intTest(type: Test) {
// set the configuration context
testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath
// run the tests always
outputs.upToDateWhen { false }
}
test {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
// "STARTED",
}
}
intTest {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
// "STARTED",
}
}