
plunit.pl -- Unit TestingUnit testing environment for SWI-Prolog and SICStus Prolog. For usage, please visit https://www.swi-prolog.org/pldoc/package/plunit.
set_test_options(+Options)never, always, normal (only if not optimised)manual, make
or make(all).tty or log. tty uses terminal
control to overwrite successful tests, allowing the
user to see the currently running tests and output
from failed tests. This is the default of the output
is a tty. log prints a full log of the executed
tests and their result and is intended for non-interactive
usage.always, emit all output as it is produced, if never,
suppress all output and if on_failure, emit the output
if the test fails.occurs_check flag during
testing.true (default =false), cleanup report at the end
of run_tests/1. Used to improve cooperation with
memory debuggers such as dmalloc.
begin_tests(+UnitName:atom) is det
begin_tests(+UnitName:atom, Options) is detend_tests(UnitName).
end_tests(+Name) is det
run_tests is semidet
run_tests(+TestSet) is semidet
run_tests(+TestSet, +Options) is semidetThe predicate run_tests/2 is synchronized. Concurrent testing may be achieved using the relevant options. See set_test_options/1. Options are passed to set_test_options/1. In addition the following options are processed:
running_tests is det
current_test(?Unit, ?Test, ?Line, ?Body, ?Options) is nondet
current_test_unit(?Unit, ?Options) is nondet
test_report(+What) is detfixme for What.
load_test_files(+Options) is det
user:message_hook(+Severity, +Message, +Lines) is semidet[multifile]