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:
parent
0b552a3534
commit
e29867b96e
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue