Maven Surefire Plugin

The Maven plugin that runs unit tests during the test phase and writes their reports to target/surefire-reports.

In more detail

Surefire discovers test classes, runs them through the JUnit Platform and prints a summary line such as Tests run: 11, Failures: 0. A failing test fails the build. -DskipTests tells it to skip running tests.

Example

[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0

Related terms

Taught in

References