Skip to content

Commit

Permalink
build: import TestLogEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Nov 15, 2023
1 parent 792bb8d commit cc3f973
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion java/testing/junit/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
java
id("org.danilopianini.gradle-java-qa") version "1.25.0"
Expand All @@ -23,7 +25,7 @@ tasks.withType<Test> {
// Use junit platform for unit tests
useJUnitPlatform()
testLogging {
events(*(org.gradle.api.tasks.testing.logging.TestLogEvent.values())) // events("passed", "skipped", "failed")
events(*(TestLogEvent.values())) // events("passed", "skipped", "failed")
}
testLogging.showStandardStreams = true
}
4 changes: 3 additions & 1 deletion java/testing/tdd-deathnote/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestLogEvent

plugins {
java
id("org.danilopianini.gradle-java-qa") version "1.25.0"
Expand All @@ -19,7 +21,7 @@ tasks.withType<Test> {
// Use junit platform for unit tests
useJUnitPlatform()
testLogging {
events(*(org.gradle.api.tasks.testing.logging.TestLogEvent.values())) // events("passed", "skipped", "failed")
events(*(TestLogEvent.values())) // events("passed", "skipped", "failed")
}
testLogging.showStandardStreams = true
}

0 comments on commit cc3f973

Please sign in to comment.