11
The Surefire Plugin is used during the <<<test>>> phase of the build
12
lifecycle to execute the unit tests of an application. It generates reports
13
in 2 different file formats:
15
* Plain text files (*.txt)
21
By default, these files are generated at <<<$\{basedir\}/target/surefire-reports>>>.
23
For an HTML format of the report, please see the
24
{{{http://maven.apache.org/plugins/maven-surefire-report-plugin/}Maven Surefire Report Plugin}}.
28
The Surefire Plugin has only 1 goal:
30
* {{{test-mojo.html}surefire:test}} runs the unit tests of an application.
36
Instructions on how to use the Surefire Plugin can be found on the {{{usage.html}usage page}}.
40
The following examples show how to use the Surefire Plugin in more advanced use-cases:
42
* {{{examples/testng.html}Using TestNG}}
44
* {{{examples/skipping-test.html}Skipping Tests}}
46
* {{{examples/inclusion-exclusion.html}Inclusions and Exclusions of Tests}}
48
* {{{examples/single-test.html}Running a Single Test}}
50
* {{{examples/class-loading.html}Class Loading Issues}}
52
* {{{examples/debugging.html}Debugging Tests}}
54
* {{{examples/system-properties.html}Using System Properties}}
56
* {{{examples/additional-classpath.html}Additional Classpath Elements}}