unittest.spad line 66 [edit on github]
UnittestCount is a package that keeps track of statistics collected during testing.It is separate from UnittestAux because the latter takes an argument, and we want the state to be common for all arguments.
addWarning s
is an internal function that adds s
, together with an indication of the current testcase and the current testsuite to the list of warnings.
incFail(s, o)
is an internal function that steps the number of failed tests and records in- and output.
incFatal s
is an internal function that steps the number of fatal tests and records input.
incLibraryError is an internal function that steps the number of failed tests, but not the number of tests.
incPass is an internal function that steps the number of passed tests.
incTest is an internal function that steps the test number.
incXfFail()
is an internal function that steps the number expected failures.
incXfFatal is like incFatal, but for expected failures.
incXfLibraryError is like incLibraryError, but using expected failures.
incXfPass(s, o)
is an internal function that steps the number of tests that passed but were expected to fail and records in- and output.
statistics()
prints out a summary of the outcome of the testcases so far. Use clear completely
to reset the statistics.
testcase s
starts a new testcase with s
as title. It also calls clear all
. A testcase is composed of several tests.
testcaseNoClear s
, starts a new testcase with s
as title, without calling clear all
. A testcase is composed of several tests.
testsuite s
starts a new testsuite with s
as title. It also calls clear all
. A testsuite is composed of several testcases.
testsuiteNoClear s
starts a new testsuite with s
as title, without calling clear all
. A testsuite is composed of several testcases.