# ./library/lib/test.xotcl

## Package/File Information

No package provided/required
Defined Objects/Classes:

- Test:

Filename: ./library/lib/test.xotcl

Description: | Simple regression test support.

## Class: Test

Class: Class

Description: | Class Test is used to configure test instances, which can be configured by the following parameters:

- cmd: the command to be executed
- expected: the expected result
- count: number of executions of cmd
- pre: a command to be executed at the begin of the test (before cmd)
- post: a command to be executed after the test (after all cmds)
- namespace in which pre, post and cmd are evaluated; default ::

The defined tests can be executed by `Test run`

Back to index page.