Skip to content

Commit

Permalink
build.gradle: set useJUnitPlatform for all Test tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Sep 28, 2023
1 parent ebbef32 commit f8cff5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ subprojects {
reproducibleFileOrder = true
}

test {
tasks.withType(Test).configureEach {
useJUnitPlatform() // We're using Spock 2.0 and JUnit 5
}
}
Expand Down
2 changes: 1 addition & 1 deletion cj-btc-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ sourceSets {
tasks.register('regTest', Test) {
description = 'Runs integration tests against Bitcoin Core in regtest mode'
group = 'verification'
useJUnitPlatform()

testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
Expand Down
3 changes: 1 addition & 2 deletions cj-btc-jsonrpc-integ-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ test {
}

tasks.register('integrationTest', Test) {
useJUnitPlatform()
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
Expand All @@ -62,7 +61,7 @@ tasks.register('integrationTest', Test) {
tasks.register('regTest', Test) {
description = 'Runs integration tests against Bitcoin Core in regtest mode'
group = 'verification'
useJUnitPlatform()

testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
Expand Down

0 comments on commit f8cff5b

Please sign in to comment.