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.

ParameterRequired?DescriptionDefault
test.run.jvmargsNoExtra parameters to pass to the test JVM, for example to enable debugging
test.run.forkNoRun the tests in a separate VM. (true/false)true
test.run.includes.patternNoPattern describing class files included in test run**/*
test.run.excludes.patternNoPattern describing class files excluded in test run
test.run.dirNoworking directory for unit test process, defaults to the project basedir${basedir}
test.run.forkmodeNoThe 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: