Plugin test-junit v0.2
extends abstract-test
Overview
This module provides junit tests compilation and execution feature.
This module extends abstract-test module.
Parameters
The following property values can be changed to tune the behavior of this plugin.
Required parameters must be defined upon import, or the build will fail.
| Parameter | Required? | Description | Default |
|---|---|---|---|
| test.run.jvmargs | No | Extra parameters to pass to the test JVM, for example to enable debugging | |
| test.run.fork | No | Run the tests in a separate VM. (true/false) | true |
| test.run.includes.pattern | No | Pattern describing class files included in test run | **/* |
| test.run.excludes.pattern | No | Pattern describing class files excluded in test run | |
| test.run.dir | No | working directory for unit test process, defaults to the project basedir | ${basedir} |
| test.run.forkmode | No | The forkmode for junit tests; 'perTest' or 'once' | perTest |
Build Phases
This plugin adds targets to each of the following build phases:
- validate
-
- init
- test
-
- run: run junit tests
- report
-
- report: generate junit report
Extra Targets
This plugin defines some extra Ant targets not attached to any build phase:
- /skip: skip tests
- doit