Specifying a Configuration File (config)

To specify the configuration file the the JavaTest harness uses to run tests, use the configcommand.

> javatest ... -config path/filename ... [task command] ...

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

The configuration file may contain default values for the test suite (which contains the tests to be run) and the work directory (which is where to put the results).

Test suite and work directory values in the configuration file can be overridden with the testsuite and workdirectory commands. If the configuration file is a template and does not contain default values for the test suite and work directory, those values must be specified explicitly with the testsuite and workdirectory commands.

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

Detailed Example of config Command

In the following example, myconfig.jti represents a configuration file name that might exist on your system.

Command Options Format Example:

> javatest -config myconfig.jti -runtests

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