How to get JUnit tests annotated with @Tag to be executed in suite that has @IncludeTags?
问题 I have the following code: Test class: @Tag("foo") class SomeIT { @Test public void testSomeStuff() { ... } } Suite class: @RunWith(JUnitPlatform.class) @IncludeTags({"foo"}) //@SelectPackages("org.foo") public class SomeITSuite { } My pom.xml : <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org