Browse Source

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
pull/27555/head
Marc Philipp 3 years ago committed by Sam Brannen
parent
commit
e29867b96e
  1. 1
      spring-test/spring-test.gradle

1
spring-test/spring-test.gradle

@ -93,6 +93,7 @@ test { @@ -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")

Loading…
Cancel
Save