Table of Contents

Maven - Test

About

Test is a phase that:

The Maven lifecycle has four phases for running integration tests:

Management

Running

Integration

When running integration tests, you should invoke Maven with the (shorter to type too)

mvn verify

rather than trying to invoke the integration-test phase directly, as otherwise the post-integration-test phase will not be executed.

Without test

mvn install -DskipTests

See Maven - D Argument

Plugin

To run the test you use a plugin:

Report

File Location

The Failsafe Plugin generates reports in file (Txt and XML) By default, these files are generated at basedir/target/failsafe-reports. (where basedir is the project home)

XML

The schema for the Surefire XML reports is available at Surefire XML Report Schema.

HTML

For an HTML format of the report, please see the Maven Surefire Report Plugin.

Test shared between multiple module

See Maven - test jar