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
This commit is contained in:
Marc Philipp 2021-09-15 16:08:36 +02:00 committed by Sam Brannen
parent 0b552a3534
commit e29867b96e
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ test {
// the latter results in some tests being executed/reported // the latter results in some tests being executed/reported
// multiple times. // multiple times.
include(["**/*Tests.class", "**/*Test.class"]) include(["**/*Tests.class", "**/*Test.class"])
filter.excludeTestsMatching("*TestCase")
systemProperty("testGroups", project.properties.get("testGroups")) systemProperty("testGroups", project.properties.get("testGroups"))
// Java Util Logging for the JUnit Platform. // Java Util Logging for the JUnit Platform.
// systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager") // systemProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager")