Skip to content

Commit c2d1bd8

Browse files
authored
build: Always run hapi test tasks (#24668)
Signed-off-by: Matt Hess <matt.hess@swirldslabs.com>
1 parent eda827a commit c2d1bd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hedera-node/test-clients/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ tasks {
230230
tasks.register<Test>("testSubprocess") {
231231
testClassesDirs = sourceSets.main.get().output.classesDirs
232232
classpath = configurations.runtimeClasspath.get().plus(files(tasks.jar))
233+
outputs.upToDateWhen { false } // Don't skip execution of hapi test tasks
233234

234235
val ciTagExpression =
235236
gradle.startParameter.taskNames
@@ -351,6 +352,7 @@ tasks.register<Test>("testSubprocess") {
351352
tasks.register<Test>("testSubprocessConcurrent") {
352353
testClassesDirs = sourceSets.main.get().output.classesDirs
353354
classpath = configurations.runtimeClasspath.get().plus(files(tasks.jar))
355+
outputs.upToDateWhen { false } // Don't skip execution of hapi test tasks
354356

355357
val ciTagExpression =
356358
gradle.startParameter.taskNames
@@ -468,6 +470,7 @@ tasks.register<Test>("testSubprocessConcurrent") {
468470
tasks.register<Test>("testRemote") {
469471
testClassesDirs = sourceSets.main.get().output.classesDirs
470472
classpath = configurations.runtimeClasspath.get().plus(files(tasks.jar))
473+
outputs.upToDateWhen { false } // Don't skip execution of hapi test tasks
471474

472475
systemProperty("hapi.spec.remote", "true")
473476
// Support overriding a single remote target network for all executing specs
@@ -563,6 +566,7 @@ tasks {
563566
tasks.register<Test>("testEmbedded") {
564567
testClassesDirs = sourceSets.main.get().output.classesDirs
565568
classpath = configurations.runtimeClasspath.get().plus(files(tasks.jar))
569+
outputs.upToDateWhen { false } // Don't skip execution of hapi test tasks
566570

567571
val ciTagExpression =
568572
gradle.startParameter.taskNames
@@ -623,6 +627,7 @@ tasks {
623627
tasks.register<Test>("testRepeatable") {
624628
testClassesDirs = sourceSets.main.get().output.classesDirs
625629
classpath = configurations.runtimeClasspath.get().plus(files(tasks.jar))
630+
outputs.upToDateWhen { false } // Don't skip execution of hapi test tasks
626631

627632
val ciTagExpression =
628633
gradle.startParameter.taskNames

0 commit comments

Comments
 (0)