forked from xp-dojo/atdd-bank-account
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (48 loc) · 1.45 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
defaultTasks 'clean', 'build'
apply plugin: 'java'
wrapper {
gradleVersion = "4.8.1"
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
test {
java.srcDirs = ['src/test/unit/java']
resources.srcDirs = ['src/test/unit/resources']
}
acceptanceTest {
java.srcDirs = ['src/test/acceptance/java']
resources.srcDirs = ['src/test/acceptance/resources']
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
configurations {
acceptanceTest.extendsFrom testCompile
acceptanceTest.extendsFrom testRuntime
}
dependencies {
testCompile 'org.junit.jupiter:junit-jupiter:5.4.0'
testCompile 'org.hamcrest:hamcrest-core:2.1'
acceptanceTestCompile 'org.concordion:concordion:2.2.0'
}
test {
systemProperty "user.country", "EN"
systemProperty "user.language", "en"
outputs.upToDateWhen { false }
useJUnitPlatform()
}
task acceptanceTest(type: Test) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = 'Runs the acceptance tests.'
testClassesDirs = sourceSets.acceptanceTest.output.classesDirs
classpath = sourceSets.acceptanceTest.runtimeClasspath
outputs.upToDateWhen { false }
systemProperties['concordion.output.dir'] = "$reporting.baseDir/spec"
testLogging.showStandardStreams = true
}
check.dependsOn acceptanceTest
acceptanceTest.mustRunAfter test