This is the should-test Reference Manual, version 1.0.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 06:41:53 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
should-test
Minimal yet feature-rich Common Lisp test framework.
Vsevolod Dyomkin <vseloved@gmail.com>
Vsevolod Dyomkin <vseloved@gmail.com>
MIT
1.0.0
rutils
(system).
local-time
(system).
osicat
(system).
cl-ppcre
(system).
should-test.lisp
(file).
self-test.lisp
(file).
xunit.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
should-test/should-test.asd
should-test/should-test.lisp
should-test/self-test.lisp
should-test/xunit.lisp
should-test/should-test.lisp
should-test
(system).
*test-output*
(special variable).
*verbose*
(special variable).
deftest
(macro).
should
(macro).
should-check
(generic function).
should-checked
(condition).
should-erred
(condition).
should-failed
(condition).
should-format
(generic function).
should-test-error
(condition).
should-test-redefinition-warning
(condition).
test
(function).
undeftest
(function).
should-checked-rez
(reader method).
should-test/self-test.lisp
should-test.lisp
(file).
should-test
(system).
should-test/xunit.lisp
self-test.lisp
(file).
should-test
(system).
*xml-output*
(special variable).
test-for-xunit
(function).
xml
(macro).
xml-escape
(function).
Packages are listed by definition order.
should-test
st
common-lisp
.
local-time
.
rtl
.
*test-output*
(special variable).
*verbose*
(special variable).
*xml-output*
(special variable).
deftest
(macro).
should
(macro).
should-check
(generic function).
should-checked
(condition).
should-erred
(condition).
should-failed
(condition).
should-format
(generic function).
should-test-error
(condition).
should-test-redefinition-warning
(condition).
test
(function).
test-for-xunit
(function).
undeftest
(function).
should-checked-rez
(generic reader).
xml
(macro).
xml-escape
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Stream to print test results.
Define a NAMEd test which is a function
that treats each form in its BODY as an assertion to be checked
and prints some information to the output.
The result of this function is a boolean indicating
if any of the assertions has failed.
In case of failure second value is a list of failure descriptions,
returned from assertions,
and the third value is a list of uncaught errors if any.
Define an individual test from:
- a comparison TEST
- EXPECTED values
- an operation that needs to be tested (TESTEE)
KEY is used to determine, which kind of results processing is needed
(implemented by generic function SHOULD-CHECK methods).
The simplest key is BE that just checks for equality.
Another pre-defined key is SIGNAL, which intercepts conditions.
Run a scpecific TEST or all tests defined in PACKAGE (defaults to current).
Returns T if all tests pass or 3 values:
- NIL
- a hash-table of failed tests with their failed assertions’ lists
- a hash-table of tests that have signalled uncaught errors with these errors
If FAILED is set reruns only tests failed at last run.
Like TEST but writes xunit-style XML test report to OUT.
Remove test from symbol NAME.
Specific processing for SHOULD based on KEY.
FN’s output values are matched to EXPECTED values (if they are given).
Up to 2 values are returned:
- if the test passed (T or NIL)
- in case of failure - actual result
Format appropriately for test output.
condition
.
:rez
This slot is read-only.
simple-error
.
style-warning
.
:name
should-checked
)) ¶rez
.
Jump to: | D F G M S T U X |
---|
Jump to: | D F G M S T U X |
---|
Jump to: | *
N R S |
---|
Jump to: | *
N R S |
---|
Jump to: | C F P S X |
---|
Jump to: | C F P S X |
---|