Specifying Exclude List Files ( excludeList)

Test suites normally supply exclude list files which contain the list of tests that the harness is not required to run. Exclude list files conventionally use a .jtx extension. Once you have set up a configuration, you can use an excludeList command to specify the exclude list for your test run:

> javatest ... [initial set-up commands] ... -excludeList path/filename ... [task command] ...

The -excludeList path/filename command can be used multiple times to specify multiple exclude lists for a test run.

See About the Command-Line Examples for a description of the use of > javatest.

The exclude list that you specify in the command line overrides any exclude list specified in the configuration file without changing the configuration file.

When you want to specify an exclude list, include the commands in the following sequence:

  1. Set up a configuration
  2. Specify the exclude list ( excludeList path/filename)
  3. Include a Task Command such as runtests(optional).

See Command-Line Overview for a detailed description of the command line structure.

Detailed Example of excludeList Command

In the following example, myconfig.jti and myexcludelist.jtx represent file names that might exist on your system.

Command Options Format Example:

> javatest -config myconfig.jti -exclude myexcludelist.jtx -runtests

See Formatting a Command for descriptions and examples of other command formats that you can use.