# Auditing Tests With `audit`

You can audit test results by including `-audit` as a separate command or as part of a series of task commands (such as to run tests and write test reports). The results of the audit are sent to the terminal.

Because the harness executes commands in their command-line sequence, you must identify the work directory before the `-audit` command.

> jtharness ... `-workdirectory` mywork-directory `-audit`

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

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

## Detailed Example of `audit` Command

In the following example, mywork-directory represents a work directory name that might exist on your system.

Command Options Format Example:

> jtharness `-workdirectory` mywork-directory `-audit`

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

Copyright © 2002, 2009, Oracle and/or its affiliates. All rights reserved.