I am working with JUnit 5.1.0 in a Maven project. I have IntelliJ IDEA 2018.3.2 (Community Edition). I would like to use the @Tag annotation to describe my tests and be able to filter by those.
The point is that in edit configurations | Configuration | Test Kind there is no "Tag (JUnit 5)" option like I have seen in many examples. Only the option "Tags" is provided.
When I use the option mentioned, I set the field Tag expression to "slow" (without the quotes) (I have one test already tagged like @Tag("slow")).
The point is that no test is found (the test is marked with @Test).
@Test
@Tag("slow")
public void testNotBlank() {
// Given
String excectedText = "";
// When
String text = Checks.notBlank(excectedText, "error");
// Then
assertEquals("", Checks.notBlank(text, "error"));
}
The pom dependency
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.1.0</version>
<scope>test</scope>
</dependency>
First of all, I expected to have the option "Tags (JUnit 5)" and I don't. Then, I expected that selecting "Tags" and giving the expression "slow", the test testNotBlank would be executed.


