object
Logtalk unit test framework.
Paulo Moura
0.2
2007/8/27
static
(no dependencies on other files)
Defines a test goal which is expected to succeed.
static
succeeds(Test, Goal)
succeeds(+atom, @callable) – zero_or_more
Defines a test goal which is expected to fail.
static
fails(Test, Goal)
fails(+atom, @callable) – zero_or_more
Defines a test goal which is expected to throw an error.
static
throws(Test, Goal, Error)
throws(+atom, @callable, @nonvar) – zero_or_more
Runs the unit tests, writing the results to the specified file. Mode can be either "write" (to create a new file) or "append" (to add results to an existing file).
static
run(File, Mode)
run(+atom, +atom) – zero_or_one
Runs the unit tests, writing the results to the current output stream.
static
run – zero_or_one
Setup environment before running the test. Defaults to the goal true.
static
setup – zero_or_one
Executes the tests. By default, starts with the "succeeds" tests, followed by the "fails" tests, and than the "throws" tests.
static
test – zero_or_one
Cleanup environment after running the test. Defaults to the goal true.
static
cleanup – zero_or_one
(none)