/
build.gradle
68 lines (58 loc) · 1.4 KB
/
build.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
repositories {
jcenter()
}
dependencies {
classpath(
'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.2.0'
)
}
}
apply plugin: 'java'
apply plugin: 'org.unbroken-dome.test-sets'
//If you are using Gradle 2.1+, you can use the new Plugins DSL. The
//following snippet replaces every line above this comment:
/*plugins {
id 'java'
id 'org.unbroken-dome.test-sets' version '1.2.0'
}*/
testSets {
integrationTest { dirName = 'integration-test' }
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
repositories {
mavenCentral()
}
dependencies {
testCompile(
'junit:junit:4.12'
)
integrationTestCompile(
//Add dependencies that are required to compile
//our integration tests.
)
integrationTestRuntime(
//Add dependencies that are required to run
//our integration tests.
)
}
test {
useJUnit {
includeCategories 'com.testwithspring.intermediate.unittests.UnitTest'
}
testLogging {
showStandardStreams = true
}
}
integrationTest {
useJUnit {
includeCategories 'com.testwithspring.intermediate.integrationtests.IntegrationTest'
}
testLogging {
showStandardStreams = true
}
}