From e29867b96e835a53d0222ad666273b5e93c800a6 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Wed, 15 Sep 2021 16:08:36 +0200 Subject: [PATCH] Exclude TestCase classes in spring-test build When not excluded, TestNG will pick up nested TestCase classes and run them. This commit therefore filters out `*TestCase` test classes from the build since these are not intended to be executed with the build. See gh-27406 --- spring-test/spring-test.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-test/spring-test.gradle b/spring-test/spring-test.gradle index 026507a028..0bc316636a 100644 --- a/spring-test/spring-test.gradle +++ b/spring-test/spring-test.gradle @@ -93,6 +93,7 @@ test { // the latter results in some tests being executed/reported // multiple times. include(["**/*Tests.class", "**/*Test.class"]) + filter.excludeTestsMatching("*TestCase") systemProperty("testGroups", project.properties.get("testGroups")) // Java Util Logging for the JUnit Platform. // systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")