O'Reilly logo

Mastering Software Testing with JUnit 5 by Boni García

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The ConsoleLauncher

The ConsoleLauncher is a command-line Java application that allows launching the JUnit Platform from the console. For example, it can be used to run Vintage and Jupiter tests from the command line.

An executable JAR with all dependencies included is published in the central Maven repository under the junit-platform-console-standalone artifact. The standalone Console Launcher can be executed as follows:

java -jar junit-platform-console-standalone-version.jar <Options>

The example GitHub repository junit5-console-launcher contains a simple example for the use of the Console Launcher. As depicted in the following picture, a run configuration entry has been created in Eclipse, running the main class, org.junit.platform.console.ConsoleLauncher ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required