-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
30 lines (26 loc) · 880 Bytes
/
build.gradle
File metadata and controls
30 lines (26 loc) · 880 Bytes
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
plugins {
id 'java-library'
}
group 'camp.nextstep.edu'
version '1.0.0'
repositories {
mavenCentral()
}
dependencies {
api 'org.assertj:assertj-core:3.21.0'
api 'org.junit.jupiter:junit-jupiter:5.8.1'
api 'org.mockito:mockito-inline:3.12.4'
}
test {
useJUnitPlatform()
testLogging {
afterSuite { desc, result ->
if (!desc.parent) {
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} passed, ${result.failedTestCount} failed, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
}
}
}
}