Ensure that JUnit Jupiter tests are executed during build

After the upgrade to JUnit Jupiter 5.0 M3, JUnit Jupiter tests in the
Spring build were no longer executed due to the introduction of a
default test class name pattern.

This commit addresses this issue by making use of the
@IncludeClassNamePatterns to specify that *TestCase test classes should
be executed within the org.springframework.test.context.junit.jupiter
package.
This commit is contained in:
Sam Brannen 2017-01-07 02:24:46 +01:00
parent 08cc92176a
commit e4a599f961
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@
package org.springframework.test.context.junit;
import org.junit.platform.runner.IncludeClassNamePatterns;
import org.junit.platform.runner.IncludeEngines;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.platform.runner.SelectPackages;
@ -47,6 +48,7 @@ import org.junit.runner.RunWith;
@RunWith(JUnitPlatform.class)
@IncludeEngines("junit-jupiter")
@SelectPackages("org.springframework.test.context.junit.jupiter")
@IncludeClassNamePatterns("^.*TestCase$")
@UseTechnicalNames
public class SpringJUnitJupiterTestSuite {
}