Skip to content

Commit

Permalink
update test ci #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasean committed Jan 5, 2024
1 parent 4f6d35c commit 999e627
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ apply plugin: 'java'
group = "org.student"
version = "1.0-SNAPSHOT"

var showTestLogs = false

subprojects {

Expand All @@ -12,6 +13,21 @@ subprojects {
mavenCentral()
}

test {
testLogging {
events "passed", "skipped", "failed"
showStandardStreams = showTestLogs
}

afterTest {desc, result ->
if (result.resultType == TestResult.ResultType.SUCCESS) {
logger.lifecycle("Module: ${project.name}, Test result: Passed: ${desc.name}")
} else if (result.resultType == TestResult.ResultType.FAILURE) {
logger.lifecycle("Module: ${project.name}, Test result: Failed: ${desc.name}")
}
}
}

dependencies {

implementation 'org.apache.logging.log4j:log4j-api:2.14.1'
Expand Down
5 changes: 2 additions & 3 deletions core-back-end/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ dependencies {
testImplementation 'io.projectreactor:reactor-test'
}

tasks.named('test') {
tasks.test {
useJUnitPlatform()
}

}
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 999e627

Please sign in to comment.