Skip to content

Commit

Permalink
build.gradle: apply test configuration to all tasks withType Test
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 28, 2023
1 parent f3a645c commit 96dc1cc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ subprojects {
reproducibleFileOrder = true
}

test {
tasks.withType(Test).configureEach {
useJUnitPlatform()
testLogging.showStandardStreams = true
}
Expand Down
2 changes: 0 additions & 2 deletions omnij-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ sourceSets {
}

tasks.register('regTest', Test) {
useJUnitPlatform()
testClassesDirs = project.sourceSets.integrationTest.output.classesDirs
classpath = project.sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
testLogging.showStandardStreams = true
beforeSuite { descriptor ->
if (descriptor.getClassName() != null) {
logger.lifecycle('\033[1m' + descriptor.getName() + "\033[0m") // bold
Expand Down
2 changes: 0 additions & 2 deletions omnij-rpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ sourceSets {
*/
class IntegrationTest extends Test {
public IntegrationTest() {
useJUnitPlatform()
testClassesDirs = project.sourceSets.integrationTest.output.classesDirs
classpath = project.sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
testLogging {
showStandardStreams = true
exceptionFormat = 'full'
displayGranularity = -1
}
Expand Down

0 comments on commit 96dc1cc

Please sign in to comment.