This is the unit-test Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Sep 15 07:01:40 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
Files are sorted by type and then listed depth-first from the systems components trees.
unit-test/unit-test.lisp
unit-test
(system).
*unit-test-debug*
(special variable).
define-test-class
(macro).
deftest
(macro).
get-test-by-name
(function).
initialize-instance
(method).
print-object
(method).
print-object
(method).
run-all-tests
(function).
run-test
(generic function).
test-assert
(macro).
test-condition
(macro).
test-condition-result
(class).
test-equal
(macro).
test-equal-result
(class).
test-error-result
(class).
test-result
(class).
*unit-test-results*
(special variable).
*unit-tests*
(special variable).
delete-all-tests
(function).
delete-tests-for
(function).
print-result
(generic function).
print-result-form
(generic function).
print-result-status
(generic function).
test-assert-result
(class).
test-crashed-p
(function).
test-failed-p
(function).
test-fails
(function).
test-passed-p
(function).
test-passes
(function).
test-result-error
(reader method).
test-result-form
(reader method).
test-result-real-value
(reader method).
test-result-reason
(reader method).
test-result-result
(reader method).
test-result-status
(reader method).
test-result-value
(reader method).
unit-test
(class).
unit-test-body
(reader method).
unit-test-failed-form
(reader method).
(setf unit-test-failed-form)
(writer method).
unit-test-name
(reader method).
unit-test-unit
(reader method).
Packages are listed by definition order.
unit-test
common-lisp
.
*unit-test-debug*
(special variable).
define-test-class
(macro).
deftest
(macro).
get-test-by-name
(function).
run-all-tests
(function).
run-test
(generic function).
test-assert
(macro).
test-condition
(macro).
test-condition-result
(class).
test-equal
(macro).
test-equal-result
(class).
test-error-result
(class).
test-result
(class).
*unit-test-results*
(special variable).
*unit-tests*
(special variable).
delete-all-tests
(function).
delete-tests-for
(function).
print-result
(generic function).
print-result-form
(generic function).
print-result-status
(generic function).
test-assert-result
(class).
test-crashed-p
(function).
test-failed-p
(function).
test-fails
(function).
test-passed-p
(function).
test-passes
(function).
test-result-error
(generic reader).
test-result-form
(generic reader).
test-result-real-value
(generic reader).
test-result-reason
(generic reader).
test-result-result
(generic reader).
test-result-status
(generic reader).
test-result-value
(generic reader).
unit-test
(class).
unit-test-body
(generic reader).
unit-test-failed-form
(generic reader).
(setf unit-test-failed-form)
(generic writer).
unit-test-name
(generic reader).
unit-test-unit
(generic reader).
Definitions are sorted by export status, category, package, and then by lexicographic order.
(Setq *unit-test-debug* t) for debugging
Define a new test class. SLOTS are specified as normal CLOS slots.
Create an instance of a unit test called NAME for UNIT.
test-result
) stream) ¶:result
This slot is read-only.
common-lisp
.
:error
This slot is read-only.
:form
This slot is read-only.
one of :pass, :fail, :crash
:status
This slot is read-only.
:reason
This slot is read-only.
Collects the results of the running tests.
This contains all unit tests. Tests are added simply by creating instances of test objects.
Throw away all tests from test suite.
Blow away all tests for UNIT from test set.
Used to signal that the test has failed. REASON may be a string or symbol which will be noted in the test report.
Used to signal that the test has passed.
test-result
) stream) ¶test-condition-result
) stream) ¶test-error-result
) stream) ¶test-equal-result
) stream) ¶test-assert-result
) stream) ¶test-result
) stream) ¶test-equal-result
) (status (eql :fail)
) stream) ¶test-condition-result
) (status (eql :fail)
) stream) ¶test-error-result
) (status (eql :crash)
) stream) ¶test-result
) (status (eql :crash)
) stream) ¶test-result
) (status (eql :pass)
) stream) ¶test-result
) (status (eql :fail)
) stream) ¶test-error-result
)) ¶automatically generated reader method
test-result
)) ¶automatically generated reader method
form
.
test-equal-result
)) ¶automatically generated reader method
test-result
)) ¶automatically generated reader method
test-condition-result
)) ¶automatically generated reader method
test-result
)) ¶one of :pass, :fail, :crash
test-equal-result
)) ¶automatically generated reader method
The base class for all unit tests. When tests are defined,
they will be stored in a global list of tests which can be run at any time with
RUN-ALL-TESTS.
Name of unit being tested. Used to group related tests.
:unit
This slot is read-only.
"unknown test"
:name
This slot is read-only.
:body
This slot is read-only.
"unknown form"
Jump to: | (
D F G I M P R T U |
---|
Jump to: | (
D F G I M P R T U |
---|
Jump to: | *
B E F N R S U V |
---|
Jump to: | *
B E F N R S U V |
---|
Jump to: | C F P S T U |
---|
Jump to: | C F P S T U |
---|