forked from bmeritter/tdd-gilded-rose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (37 loc) · 1.46 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
group 'cn.xpbootcamp'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
afterSuite { desc, result ->
if (!desc.parent) {
def output = " Result: ${result.resultType} " +
"(${result.testCount} Tests, " +
"${result.successfulTestCount} Successes, " +
"${result.failedTestCount} Failures, " +
"${result.skippedTestCount} Skipped) "
println('\n' + ('-' * output.length()) + '\n' + output + '\n' + ('-' * output.length()))
}
}
}
}
def JUNIT5_API_VERSION = '5.3.0'
def JUNIT5_PLATFORM_VERSION = '1.3.0'
dependencies {
implementation 'com.google.guava:guava:28.2-jre'
implementation 'joda-time:joda-time:2.10.5'
testImplementation "org.junit.jupiter:junit-jupiter-api:${JUNIT5_API_VERSION}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${JUNIT5_API_VERSION}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${JUNIT5_API_VERSION}"
testImplementation "org.junit.platform:junit-platform-launcher:${JUNIT5_PLATFORM_VERSION}"
testImplementation 'org.assertj:assertj-core:3.10.0'
testImplementation 'org.mockito:mockito-junit-jupiter:2.17.0'
testImplementation 'com.approvaltests:approvaltests:4.0.2'
}