Browse Source

Fix running vertx-web-3.0 tests (#10549)

Lauri Tulmin 1 year ago
parent
commit
69b531928c
1 changed files with 10 additions and 4 deletions
  1. 10 4
      instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

+ 10 - 4
instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

@@ -45,8 +45,10 @@ testing {
   }
 }
 
+val testLatestDeps = findProperty("testLatestDeps") as Boolean
+
 tasks {
-  if (findProperty("testLatestDeps") as Boolean) {
+  if (testLatestDeps) {
     // disable regular test running and compiling tasks when latest dep test task is run
     named("test") {
       enabled = false
@@ -54,9 +56,13 @@ tasks {
     named("compileTestGroovy") {
       enabled = false
     }
+  }
 
-    check {
-      dependsOn(testing.suites)
-    }
+  named("latestDepTest") {
+    enabled = testLatestDeps
+  }
+
+  check {
+    dependsOn(testing.suites)
   }
 }