Running a test suite at the command prompt
To run a test suite, execute the following operations at the command prompt.
gwb compile
gwb runSuite -Dsuite=TestSuiteClassName {-Doption...}
The gwb compile command compiles the GUnit test and test suite classes.
The gwb runSuite command runs the tests in a specified test suite. The command accepts the
following options. Each option is prefixed by -D.
| Option | Description |
|---|---|
suite |
Required. Fully-qualified suite class name, such as com.acme.MyTestSuite.Example:
|
dir.results |
Optional. Directory in which to store results. If a relative directory is specified, the location is
relative to the application's root directory. The results file contents are in a format that can be processed by continuous integration systems. Default: The /tmp directory. Example: |
dir.temp |
Optional. Directory in which to store temporary test files. If a relative directory is specified, the
location is relative to the application's root directory. Default: The /tmp directory. Example: |
memory |
Optional. Maximum memory in MB to allocate to run tests. Default: 768 Example:
|
