Launcher
Explore the JUnit 5 Launcher API to discover, filter, and execute tests programmatically. Understand how to create Launcher instances, use filters, and configure test execution options in Maven and Gradle.
We'll cover the following...
So far, we’ve executed JUnit 5 tests using Maven. JUnit 5 has the junit-platform-launcher module to discover, filter, and execute tests. The JUnit platform can be launched using the Launcher API.
Methods of Launcher
Method | Description |
| Discovers tests from the |
| Executes a |
| Registers test execution listeners. |
The LauncherDiscoveryRequest extends from EngineDiscoveryRequest and adds EngineFilters and PostDiscoveryFilters. An ...