Tagged Tests
Explore the use of @Tag annotations in JUnit 5 to categorize and filter unit tests. Understand the syntax rules for tags and learn how to run tagged tests selectively using configurations in IDEs like IntelliJ IDEA.
We'll cover the following...
We'll cover the following...
JUnit 5 provides the option to filter and categorize tests. We use the @Tag annotation for this.
It is added on top of the class. We can provide a custom value to this annotation.
The following are some syntax rules for tags:
-
A tag must not be
nullor blank. -
A ...