Specifying Tests or Directories to Run (tests)

You can specify one or more individual tests or directories of tests for the JavaTest harness to run. The JavaTest harness walks the test tree starting with the sub-branches and/or tests you specify and then executes all tests that it finds (unless they are filtered out).

You can use the tests command to specify one or more individual tests or directories of tests:

tests path/filename

When creating a command string, include the commands in the following sequence:

  1. Set up a configuration
  2. Specify tests or directories of tests (tests path/filename)
  3. Include the runtests command (optional).

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

Example of tests Command

In the following example, path/filename represents a file name that might exist on your system.

Command Options Format Example:

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

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

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