/
test.gradle
33 lines (29 loc) · 1.3 KB
/
test.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
dependencies {
// Spring
testImplementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// Other
testImplementation 'org.jeasy:easy-random-core:5.0.0'
testImplementation 'org.awaitility:awaitility:4.1.1'
testImplementation 'org.wiremock:wiremock-standalone:3.3.1'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
testImplementation 'org.junit.platform:junit-platform-commons:1.9.2'
testImplementation('io.github.lsd-consulting:lsd-distributed-generator-ui-service:5.0.0:wiremock-stubs'){
exclude group: "*", module: "*"
}
}
test {
useJUnitPlatform()
testLogging.events("skipped", "failed")
systemProperty("lsd.core.report.outputDir", "$buildDir/reports/lsd")
finalizedBy jacocoTestReport
afterSuite { desc, result ->
if (!desc.parent) {
logger.lifecycle("Test results: (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)")
if (result.testCount == 0) {
throw new IllegalStateException("No tests were found. Failing the build")
}
}
}
}