diff --git a/gradle/root/test.gradle b/gradle/root/test.gradle index 6eb7ce0b2d..143b1092b3 100644 --- a/gradle/root/test.gradle +++ b/gradle/root/test.gradle @@ -300,6 +300,10 @@ def initTestJVM(Task task, String rootDirName) { // If false, testing will halt when an error is found. task.ignoreFailures true + // Whether or failure should occur if tests sources are present, but no tests are discovered + // during test execution. New for Gradle 9 (behavior is equivalent to false on Gradle 8). + task.failOnNoDiscoveredTests = false + // If false, then tests are re-run every time, even if no code has changed. task.outputs.upToDateWhen {false}