Browse Source

Don't run latest dep test suite during regular test run (#7954)

Lauri Tulmin 2 years ago
parent
commit
38f8a9c8a9

+ 3 - 3
instrumentation/finatra-2.9/javaagent/build.gradle.kts

@@ -76,10 +76,10 @@ tasks {
     named("compileTestScala") {
       enabled = false
     }
-  }
 
-  check {
-    dependsOn(testing.suites)
+    check {
+      dependsOn(testing.suites)
+    }
   }
 }
 

+ 3 - 3
instrumentation/play/play-mvc/play-mvc-2.6/javaagent/build.gradle.kts

@@ -69,10 +69,10 @@ tasks {
     named("compileTestGroovy") {
       enabled = false
     }
-  }
 
-  check {
-    dependsOn(testing.suites)
+    check {
+      dependsOn(testing.suites)
+    }
   }
 }
 

+ 12 - 2
instrumentation/vertx/vertx-rx-java-3.5/javaagent/build.gradle.kts

@@ -55,7 +55,17 @@ testing {
 }
 
 tasks {
-  check {
-    dependsOn(testing.suites)
+  if (findProperty("testLatestDeps") as Boolean) {
+    // disable regular test running and compiling tasks when latest dep test task is run
+    named("test") {
+      enabled = false
+    }
+    named("compileTestGroovy") {
+      enabled = false
+    }
+
+    check {
+      dependsOn(testing.suites)
+    }
   }
 }

+ 12 - 2
instrumentation/vertx/vertx-web-3.0/javaagent/build.gradle.kts

@@ -46,7 +46,17 @@ testing {
 }
 
 tasks {
-  check {
-    dependsOn(testing.suites)
+  if (findProperty("testLatestDeps") as Boolean) {
+    // disable regular test running and compiling tasks when latest dep test task is run
+    named("test") {
+      enabled = false
+    }
+    named("compileTestGroovy") {
+      enabled = false
+    }
+
+    check {
+      dependsOn(testing.suites)
+    }
   }
 }