<launchJunit>

Scope: Java Projects

Description

The launchJunit task is a specialized variant of launch that is designed to run junit tests only. In addition to launch, this task supports some of the nested elements that can be used in conjunction with the original junit-task such as formatters.

Arguments

Argument Description Required
workspace Path to workspace yes
initialiseWorkspace Set to 'true' if your workspace contains projects which have project names that differ from the names of their project folders and the workspace doesn't contain a .metadata directory. no (default: false)
launchFile The launch configuration file that will be launched yes

Limitations

The limitations listed in the description of launch apply to launchJunit, too.

Supported settings from the junit task

For a complete description of the supported settings, please refer to the reference of the JUnit task. Currently the launchJunit task supports the following arguments of the original junit task:

The launchJunit task currently supports the following nested elements of the original junit task:

The following example shows how to use the launchjunit task with a Formatter:

Examples

The following example shows how to launch a junit launch configuration with the launchjunit task.