This is the clunit2 Reference Manual, version 0.6.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:43:25 2024 GMT+0.
clunit2/clunit2.asd
clunit2/src/package.lisp
clunit2/src/specials.lisp
clunit2/src/classes/assertion-conditions.lisp
clunit2/src/classes/test-suite-failure-conditions.lisp
clunit2/src/classes/clunit-report.lisp
clunit2/src/classes/clunit-test-case.lisp
clunit2/src/classes/clunit-test-suite.lisp
clunit2/src/classes/clunit-test-report.lisp
clunit2/src/functions/utilities.lisp
clunit2/src/functions/prepare-specials.lisp
clunit2/src/functions/assertion-functions.lisp
clunit2/src/functions/generic-functions.lisp
clunit2/src/functions/test-case-functions.lisp
clunit2/src/functions/test-suite-functions.lisp
clunit2/src/functions/rerun-failed-tests.lisp
clunit2/src/functions/progress-report-functions.lisp
clunit2/src/report-formats/report-format-default.lisp
clunit2/src/report-formats/report-format-tap.lisp
clunit2/src/report-formats/print-object.lisp
clunit2/src/macros/utility-macros.lisp
clunit2/src/macros/assertion-macros.lisp
clunit2/src/macros/deffixture.lisp
clunit2/src/macros/defsuite.lisp
clunit2/src/macros/deftest.lisp
The main system appears first, followed by any subsystem dependency.
clunit2
CLUnit is a Common Lisp unit testing framework.
cage
Tapiwa Gutu
MIT
CLUnit is a Common Lisp unit testing framework. It is designed to be easy to use so that you can quickly start testing.
CLUnit provides a rich set of features aimed at improving your unit
testing experience:
* Multiple inheritance for test suites allows you to group tests into hierarchies.
* Composes the test results of each test run into a single report.
* Allows redefinition of inline functions and macros without
having to redefine your tests.
* Supports composable test suite fixtures.
* Allows for an interactive testing process which gives you access to the test environment.
* Provides visual feedback of the unit test progress.
* Extensible test reporting. Builtin support for default reporting and TAP output.
0.6.1
src
(module).
Modules are listed depth-first from the system components tree.
clunit2/src
clunit2
(system).
package.lisp
(file).
specials.lisp
(file).
classes
(module).
functions
(module).
report-formats
(module).
macros
(module).
clunit2/src/classes
specials.lisp
(file).
src
(module).
assertion-conditions.lisp
(file).
test-suite-failure-conditions.lisp
(file).
clunit-report.lisp
(file).
clunit-test-case.lisp
(file).
clunit-test-suite.lisp
(file).
clunit-test-report.lisp
(file).
clunit2/src/functions
classes
(module).
src
(module).
utilities.lisp
(file).
prepare-specials.lisp
(file).
assertion-functions.lisp
(file).
generic-functions.lisp
(file).
test-case-functions.lisp
(file).
test-suite-functions.lisp
(file).
rerun-failed-tests.lisp
(file).
progress-report-functions.lisp
(file).
clunit2/src/report-formats
functions
(module).
src
(module).
report-format-default.lisp
(file).
report-format-tap.lisp
(file).
print-object.lisp
(file).
clunit2/src/macros
report-formats
(module).
src
(module).
utility-macros.lisp
(file).
assertion-macros.lisp
(file).
deffixture.lisp
(file).
defsuite.lisp
(file).
deftest.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
clunit2/clunit2.asd
clunit2/src/package.lisp
clunit2/src/specials.lisp
clunit2/src/classes/assertion-conditions.lisp
clunit2/src/classes/test-suite-failure-conditions.lisp
clunit2/src/classes/clunit-report.lisp
clunit2/src/classes/clunit-test-case.lisp
clunit2/src/classes/clunit-test-suite.lisp
clunit2/src/classes/clunit-test-report.lisp
clunit2/src/functions/utilities.lisp
clunit2/src/functions/prepare-specials.lisp
clunit2/src/functions/assertion-functions.lisp
clunit2/src/functions/generic-functions.lisp
clunit2/src/functions/test-case-functions.lisp
clunit2/src/functions/test-suite-functions.lisp
clunit2/src/functions/rerun-failed-tests.lisp
clunit2/src/functions/progress-report-functions.lisp
clunit2/src/report-formats/report-format-default.lisp
clunit2/src/report-formats/report-format-tap.lisp
clunit2/src/report-formats/print-object.lisp
clunit2/src/macros/utility-macros.lisp
clunit2/src/macros/assertion-macros.lisp
clunit2/src/macros/deffixture.lisp
clunit2/src/macros/defsuite.lisp
clunit2/src/macros/deftest.lisp
clunit2/src/specials.lisp
package.lisp
(file).
src
(module).
*clunit-equality-test*
(special variable).
*clunit-report-format*
(special variable).
*test-output-stream*
(special variable).
*clunit-report*
(special variable).
*clunit-test-report*
(special variable).
*last-clunit-report*
(special variable).
*queued-test-reports*
(special variable).
*report-progress*
(special variable).
*stop-on-fail*
(special variable).
*suite-name*
(special variable).
*tab-width*
(special variable).
*test-case-hashtable*
(special variable).
*test-name*
(special variable).
*test-suite-alist*
(special variable).
*test-suite-hashtable*
(special variable).
*use-debugger*
(special variable).
clunit2/src/classes/assertion-conditions.lisp
classes
(module).
assertion-condition
(condition).
assertion-error
(condition).
assertion-fail-forced
(condition).
assertion-failed
(condition).
assertion-passed
(condition).
clunit2/src/classes/test-suite-failure-conditions.lisp
classes
(module).
test-suite-failure
(condition).
test-suite-failure-condition
(condition).
clunit2/src/classes/clunit-report.lisp
classes
(module).
clunit-report
(class).
test-reports
(reader method).
(setf test-reports)
(writer method).
errors
(reader method).
(setf errors)
(writer method).
failed
(reader method).
(setf failed)
(writer method).
passed
(reader method).
(setf passed)
(writer method).
skipped
(reader method).
(setf skipped)
(writer method).
clunit2/src/classes/clunit-test-case.lisp
classes
(module).
clunit-test-case
(class).
dependencies
(reader method).
(setf dependencies)
(writer method).
name
(reader method).
(setf name)
(writer method).
named-class
(class).
test-function
(reader method).
(setf test-function)
(writer method).
clunit2/src/classes/clunit-test-suite.lisp
classes
(module).
child-suites
(reader method).
(setf child-suites)
(writer method).
clunit-test-suite
(class).
collect-suite-dependencies
(function).
test-cases
(reader method).
(setf test-cases)
(writer method).
clunit2/src/classes/clunit-test-report.lisp
classes
(module).
clunit-test-report
(class).
test-report-name
(reader method).
(setf test-report-name)
(writer method).
test-report-passed-p
(reader method).
+assertion-conditions-reserved-size+
(constant).
assertion-conditions
(reader method).
(setf assertion-conditions)
(writer method).
skipped-p
(reader method).
(setf skipped-tests)
(writer method).
suite-list
(reader method).
(setf suite-list)
(writer method).
(setf test-report-passed)
(writer method).
clunit2/src/functions/utilities.lisp
functions
(module).
all-symbols-p
(function).
deftest-declaration-dependencies
(function).
ensure-dependency-exists
(function).
clunit2/src/functions/prepare-specials.lisp
functions
(module).
with-prepare-specials-for-testing
(macro).
clunit2/src/functions/assertion-functions.lisp
functions
(module).
handle-assertion
(function).
handle-error
(function).
signal-assertion
(function).
clunit2/src/functions/generic-functions.lisp
functions
(module).
expand-fixture
(generic function).
print-format
(generic function).
clunit2/src/functions/test-case-functions.lisp
functions
(module).
defined-test-p
(function).
get-defined-tests
(function).
run-test
(function).
add-test-case
(function).
delete-test-case
(function).
execute-test-case
(function).
get-test-case
(function).
process-queued-tests
(function).
queue-test-case
(function).
skip-test-case
(function).
test-case-execution-action
(function).
clunit2/src/functions/test-suite-functions.lisp
functions
(module).
defined-suite-p
(function).
get-child-suites
(function).
get-child-tests
(function).
get-defined-suites
(function).
run-suite
(function).
delete-test-suite
(function).
execute-test-suite
(function).
get-test-suite
(function).
(setf get-test-suite)
(function).
clunit2/src/functions/rerun-failed-tests.lisp
functions
(module).
rerun-failed-tests
(function).
clunit2/src/functions/progress-report-functions.lisp
functions
(module).
report-assertion-progress
(function).
report-suite-progress
(function).
report-test-progress
(function).
clunit2/src/report-formats/report-format-default.lisp
report-formats
(module).
print-format
(method).
print-format
(method).
print-format
(method).
print-format
(method).
print-format
(method).
print-format
(method).
clunit2/src/report-formats/report-format-tap.lisp
report-formats
(module).
*tap-test-num*
(special variable).
print-format
(method).
print-format
(method).
print-format
(method).
print-format
(method).
print-format
(method).
clunit2/src/report-formats/print-object.lisp
report-formats
(module).
print-object
(method).
print-object
(method).
print-object
(method).
clunit2/src/macros/utility-macros.lisp
macros
(module).
with-assert-restart
(macro).
with-gensyms
(macro).
with-test-restart
(macro).
clunit2/src/macros/assertion-macros.lisp
utility-macros.lisp
(file).
macros
(module).
assert-condition
(macro).
assert-eq
(macro).
assert-eql
(macro).
assert-equal
(macro).
assert-equality
(macro).
assert-equality*
(macro).
assert-equalp
(macro).
assert-expands
(macro).
assert-fail
(function).
assert-false
(macro).
assert-finishes
(macro).
assert-true
(macro).
assertion-expander
(function).
form-expander
(function).
gen-test-form
(macro).
clunit2/src/macros/deffixture.lisp
assertion-macros.lisp
(file).
macros
(module).
deffixture
(macro).
undeffixture
(macro).
clunit2/src/macros/defsuite.lisp
deffixture.lisp
(file).
macros
(module).
defsuite
(macro).
undefsuite
(macro).
clunit2/src/macros/deftest.lisp
defsuite.lisp
(file).
macros
(module).
collect-all-suite-dependencies
(function).
Packages are listed by definition order.
clunit
common-lisp
.
*clunit-equality-test*
(special variable).
*clunit-report-format*
(special variable).
*test-output-stream*
(special variable).
assert-condition
(macro).
assert-eq
(macro).
assert-eql
(macro).
assert-equal
(macro).
assert-equality
(macro).
assert-equality*
(macro).
assert-equalp
(macro).
assert-expands
(macro).
assert-fail
(function).
assert-false
(macro).
assert-finishes
(macro).
assert-true
(macro).
clunit-report
(class).
clunit-test-report
(class).
deffixture
(macro).
defined-suite-p
(function).
defined-test-p
(function).
defsuite
(macro).
deftest
(macro).
get-child-suites
(function).
get-child-tests
(function).
get-defined-suites
(function).
get-defined-tests
(function).
rerun-failed-tests
(function).
run-suite
(function).
run-test
(function).
test-report-name
(generic reader).
(setf test-report-name)
(generic writer).
test-report-passed-p
(generic reader).
test-reports
(generic reader).
(setf test-reports)
(generic writer).
undeffixture
(macro).
undefsuite
(macro).
undeftest
(macro).
*clunit-report*
(special variable).
*clunit-test-report*
(special variable).
*last-clunit-report*
(special variable).
*queued-test-reports*
(special variable).
*report-progress*
(special variable).
*stop-on-fail*
(special variable).
*suite-name*
(special variable).
*tab-width*
(special variable).
*tap-test-num*
(special variable).
*test-case-hashtable*
(special variable).
*test-name*
(special variable).
*test-suite-alist*
(special variable).
*test-suite-hashtable*
(special variable).
*use-debugger*
(special variable).
+assertion-conditions-reserved-size+
(constant).
add-test-case
(function).
all-symbols-p
(function).
assertion-condition
(condition).
assertion-conditions
(generic reader).
(setf assertion-conditions)
(generic writer).
assertion-error
(condition).
assertion-expander
(function).
assertion-fail-forced
(condition).
assertion-failed
(condition).
assertion-passed
(condition).
child-suites
(generic reader).
(setf child-suites)
(generic writer).
clunit-test-case
(class).
clunit-test-suite
(class).
collect-all-suite-dependencies
(function).
collect-suite-dependencies
(function).
deftest-declaration-dependencies
(function).
delete-test-case
(function).
delete-test-suite
(function).
dependencies
(generic reader).
(setf dependencies)
(generic writer).
ensure-dependency-exists
(function).
errors
(generic reader).
(setf errors)
(generic writer).
execute-test-case
(function).
execute-test-suite
(function).
expand-fixture
(generic function).
failed
(generic reader).
(setf failed)
(generic writer).
form-expander
(function).
gen-test-form
(macro).
get-test-case
(function).
get-test-suite
(function).
(setf get-test-suite)
(function).
handle-assertion
(function).
handle-error
(function).
name
(generic reader).
(setf name)
(generic writer).
named-class
(class).
passed
(generic reader).
(setf passed)
(generic writer).
print-format
(generic function).
process-queued-tests
(function).
queue-test-case
(function).
report-assertion-progress
(function).
report-suite-progress
(function).
report-test-progress
(function).
signal-assertion
(function).
skip-test-case
(function).
skipped
(generic reader).
(setf skipped)
(generic writer).
skipped-p
(generic reader).
(setf skipped-tests)
(generic writer).
suite-list
(generic reader).
(setf suite-list)
(generic writer).
test-case-execution-action
(function).
test-cases
(generic reader).
(setf test-cases)
(generic writer).
test-function
(generic reader).
(setf test-function)
(generic writer).
(setf test-report-passed)
(generic writer).
test-suite-failure
(condition).
test-suite-failure-condition
(condition).
with-assert-restart
(macro).
with-gensyms
(macro).
with-prepare-specials-for-testing
(macro).
with-test-restart
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Holds the equality test used to compare values by the ASSERT-EQUALITY macro.<br/> The default value <em>#’equalp</em> is reset at the end of each test/suite run.
Controls the output format of the unit test results. Possible values are :default, :tap or NIL.
The stream where the output made by tests is printed (default to ‘*standard-output*’)
Evaluates EXPRESSION as an assertion, an assertion passes if
EXPRESSION signals CONDITION. FORMS and their values are printed if
the test fails.
Example:
(assert-condition arithmetic-error (/ 1 0)) ; This assertion passes.
Evaluates EXPRESSION as an assertion, an assertion passes if (EQ VALUE EXPRESSION) values non nil. FORMS and their values are printed if the test fails.
Evaluates EXPRESSION as an assertion, an assertion passes if (EQL VALUE EXPRESSION) values non nil. FORMS and their values are printed if the test fails.
Evaluates EXPRESSION as an assertion, an assertion passes if (EQUAL
VALUE EXPRESSION) values non nil. FORMS and their values are printed if
the test fails.
example
(let ((q (+ 2 -2)))
(assert-equal 4 q q))
;; This assertion fails and prints the message below with
;; *clunit-report-format* set to :DEFAULT.
Expression: (EQUAL 4 Q)
Expected: 4
Returned: 0
Q => 0
Evaluates EXPRESSION as an assertion, an assertion passes
if (FUNCALL TEST VALUE EXPRESSION) values non nil. FORMS and their
values are printed if the test fails.
Example:
(assert-equality #’string= "some string" "another string") ; This assertion fails.
Evaluates EXPRESSION as an assertion, an assertion passes
if (FUNCALL *clunit-equality-test* VALUE EXPRESSION) returns
true. FORMS and their values are printed if the test fails.
Example:
(let ((*clunit-equality-test* #’string=))
(assert-equality* "some string" "another string")) ; This assertion fails
Evaluates EXPRESSION as an assertion, an assertion passes if (EQUALP VALUE EXPRESSION) values non nil. FORMS and their values are printed if the test fails.
Evaluates EXPRESSION as an assertion, an assertion passes if (EQUALP EXPANSION (MACROEXPAND-1 EXPRESSION)) values non nil. FORMS and their values are printed if the test fails.
Evaluates EXPRESSION as an assertion, an assertion passes if it returns nil. FORMS and their values are printed if the test fails.
example:
(assert-false (= 1 2)) ; This assertion passes.
Evaluates EXPRESSION as an assertion, an assertion passes if
EXPRESSION does not signal ‘error’. FORMS and their values are printed if
the test fails.
Example:
(assert-finishes (/ 1 0)) ; This assertion fails.
Evaluates EXPRESSION as an assertion, an assertion passes if it
returns any non-NIL value. FORMS and their values are printed if the
test fails. Remember in Common Lisp any non-NIL value is true, if you
want a strict binary assertion test use (assert-eq t expression)
instead.
Example:
(assert-true (= 1 1)) ; This assertion passes.
A fixture defines a code template that is wrapped around the code
of each test case and test suite that are executed by test suite
SUITE at runtime.. The test case body is plugged into the
template at the position identified by PLUG.
Fixtures are expanded at compile time.
Example:
(deffixture arithmetic (@body) ; @body is the plug
(let ((x 0) (y 1) (z 2))
@body))
Defines a test suite called NAME. If PARENTS is non-NIL the test
suite is defined as a sub-suite of each of the test suites in
PARENTS.
Example:
(defsuite arithmetic ())
(defsuite arithmetic-+ (arithmetic))
Defines a test case called NAME. DECLARATIONS declares which test
suites this test case is associated with as well as any other test
cases that it depends on. The test case body is revaluated on each
run, so any redefinition of macros and inline functions will be
automatically visible without having to redefine the test.
A test case will be queued until all tests cases it depends on have been run.
If all the test cases pass the queued test is executed otherwise its skipped.
The DEFTEST macro has three possible forms:
- Define a test case not associated with any test suite and with no dependencies.<br/>
(deftest name () . body)
- Define a test case which is associated with test suites: suite1 ... suiteN.
(deftest name (suite1 suite2 ... suiteN) . body)
- Define a test case associated with test suites: suite1 ... suiteN and
depends on tests: test1 ... testN
(deftest name ((suite1 suite2 ... suiteN) (test1 test2 ... testN)) . body)
Remove a fixture definition.
Calling this function is equivalent to signalling a failed assertion.
The FORMAT-STRING and ARGS are used to print the failure message as
follows:
(format stream "~?" format-string args)
If you want to achieve a nice looking output message, use pretty printing directives in the format string e.g. "~:@_" instead of "%".
Returns non-nil if a test suite called SUITE-NAME is defined, otherwise returns NIL.
Returns non-nil if a test case called TEST-NAME is defined, otherwise returns NIL.
Returns a list of all test suite names that are children of the suite called SUITE-NAME.
Returns a list of all test case names that are children of the suite called SUITE-NAME.
Returns a list of all defined test suite names.
Returns a list of all defined test case names.
Reruns all failed tests recorded in LAST-REPORT which defaults
to the report of the previous test run. If REPORT-PROGRESS is
non-NIL, the test progress is reported. If USE-DEBUGGER is
non-NIL, the debugger is invoked whenever an assertion fails.
If STOP-ON-FAIL is non-NIL, the rest of the unit test is
cancelled when any assertion fails or an error occurs.
If PRINT-RESULTS-SUMMARY is non nil the summary results of tests is printed on the standard output.
Executes a test case called SUITE. If REPORT-PROGRESS is non-NIL,
the test progress is reported.
If USE-DEBUGGER is non-NIL, the debugger is invoked whenever an
assertion fails.
If STOP-ON-FAIL is non-NIL, the rest of the unit test is cancelled
when any assertion fails or an error occurs.
if PRINT-RESULTS-SUMMARY is non nil the summary results of tests is printed on the standard output.
Executes a test case called ‘test’.
If REPORT-PROGRESS is non-NIL, the test progress is reported.
If USE-DEBUGGER is non-NIL, the debugger is invoked whenever an
assertion fails.
If STOP-ON-FAIL is non-NIL, the rest of the unit test is cancelled
when any assertion fails or an error occurs.
If PRINT-RESULTS-SUMMARY is non nil the summary results of tests is printed on the standard output.
clunit-test-report
)) ¶clunit-test-report
)) ¶the reader function is used in test-case-execution-action (see utility functions)
clunit-test-report
)) ¶Non-nil if the report passed
clunit-report
)) ¶clunit-report
)) ¶A list of ‘cl-test-report’ that contains all the test’s reports
clunit-report
) stream) ¶clunit-test-report
) stream) ¶assertion-condition
) stream) ¶the clunit-report instance is used to store the
aggregated reports of all executed test cases (returned by ‘run-test’
and ‘rerun-failed-tests’.
The number of tests that signalled an error condition during test executions.
0
:errors
The number of tests failed during test executions.
0
:failed
The number of tests that passed during test executions.
0
:passed
The number of tests that was skipped during test executions.
0
:skipped
A list of ‘cl-test-report’ that contains all the test’s reports
the reader function is used in test-case-execution-action (see utility functions)
:test-name
Non-nil if the report passed
t
:passed-p
Non-nil if the test was skipped
:skipped-p
A list of the suites this test belong.
:suite-list
the clunit-test-report instance is used to store the report information for each executed test case.
(make-array clunit::+assertion-conditions-reserved-size+ :adjustable t :fill-pointer 0)
Holds a CLUNIT-REPORT object during a test run, used to store aggregated test reports.
Holds a CLUNIT-TEST-REPORT object for each executing test case.
Holds the last returned CLUNIT-REPORT object. Default optional argument to the function RERUN-FAILED-TESTS.
A list of queued CLUNIT-TEST-REPORT objects whose test case execution has been deferred until their dependencies requirements are met.
This variable switches on progress reporting if set to true.
If any assertion fails or an error condition occurs, stop the unit test.
Holds a list of suite symbol names in their current calling order. First called suite at the front, currently executing suite at the back.
Number of tab columns to use for indentation (in the reporting functions).
Counter used in these printing functions
Holds CLUNIT-TEST-CASE instances. The key of each test case object is the symbol name.
Holds the name of the test currently executing.
Holds CLUNIT-TEST-SUITE instances. The car of each test suite object is the symbol name.
Holds CLUNIT-TEST-SUITE instances. The key of each test suite object is the symbol name.
If set to true, the debugger is invoked whenever an assertion fails.
WITH-ASSERT-RESTART places a restart called SKIP-ASSERTION around an assertion form.
WITH-GENSYMS takes a list of symbols SYM and a list of body forms. It returns a LET clause with each symbol in SYM bound to a gensymbol and the body forms as the body of the let clause.
Set some common special variables to meaningful values to prepare for running tests or suite
Adds NEW-TEST-CASE in the hash table *TEST-CASES* under the key NAME.
Ensures ‘list’ is a list of symbols.
In deftest ‘declarations’ can be a list of suites or a list of two elements, the first a list of suites and the second a list of tests, each memebre of said list must be a symbol.
Expands an assertion macro call.
When ‘declarations’ comes from the ‘deftest’ macro returns the dependencies (suites and optionally tests)
Deletes the TEST-CASE instance associated with the key NAME in the hash table *TEST-CASES*
Deletes the TEST-SUITE instance associated with the key NAME in the hash table *test-suite-hashtable*
FORM-EXPANDER manipulates the list of forms provided to an
assertion form, e.g. (defmacro assert-false (expression &rest
forms) . body)
The members of the forms list are printed out when an assertion
test fails. The example below, shows the debug output when an
assertion form fails.
(let ((x 1) (y 2) (z 3))
;;forms = ’(x y "Comment: This is meant to fail." z)
(assert-true (= x y z) x y "Comment: This is meant to fail." z))
======== Debug output ===========
Expression: (= x y z)
Expected: T
Returned: NIL
x => 1
y => 2
Comment: This is meant to fail.
z => 3
==================================
As you can see, the reporting is somehow able to
differentiate between the symbols x, y, z and the string
comment.
This is achieved by expanding ’(x y "Comment..." z) => (T ’x
x T ’y y NIL "Comment..." T ’z z)
The T or NIL symbol tells the reporting function whether to
report the next two values as a pair or not.
I went at great lengths to explain this because WHAT the
function does is straight forward from the code, but WHY it
does it
isn’t too obvious unless someone tells you :o)
Retrieves the TEST-CASE instance associated with the key NAME in the hash table *TEST-CASES*
Retrieves the TEST-SUITE instance associated with the key NAME in the hash table *test-suite-hashtable*
Adds NEW-TEST-SUITE in the hash table *test-suite-hashtable* and *test-suite-alist* under the key NAME.
Records the result of assertion tests and records any errors that occur.
Enqueue a test.
Skip a test.
Determines the execution action for TEST-CASE. If test case has no
dependencies or pending dependencies, then :RUN is returned.
If test case has another test case it depends on that failed or was
skipped, then :SKIP is returned.
If test case depends on test cases that have not yet run or are also queued, then :QUEUE is returned.
clunit-test-report
)) ¶clunit-test-report
)) ¶the clunit-test-report instance is used to store the report information for each executed test case.
clunit-test-suite
)) ¶automatically generated reader method
clunit-test-suite
)) ¶automatically generated writer method
clunit-test-case
)) ¶clunit-test-case
)) ¶The DEPENDENCIES slot holds the names of the test cases that
this test case depends on. Using an indirect reference like this
allows us to easily undefine a test case without much cleaning up.
When we execute a test case and we resolve the references of the tests it depends on. If the object is not found it means the reference is now stale, so we remove the name from the list.
clunit-report
)) ¶clunit-report
)) ¶The number of tests that signalled an error condition during test executions.
Expands out a fixture body for the given test suite.
clunit-report
)) ¶clunit-report
)) ¶The number of tests failed during test executions.
named-class
)) ¶automatically generated reader method
name
.
named-class
)) ¶automatically generated writer method
name
.
clunit-report
)) ¶clunit-report
)) ¶The number of tests that passed during test executions.
Outputs the OBJECT report to STREAM in the given FORMAT. FORMAT can be :default, :tap or NIL.
assertion-fail-forced
) (format (eql :tap)
) stream) ¶assertion-failed
) (format (eql :tap)
) stream) ¶assertion-error
) (format (eql :tap)
) stream) ¶clunit-test-report
) (format (eql :tap)
) stream) ¶clunit-report
) (format (eql :tap)
) stream) ¶test-suite-failure-condition
) (format (eql :default)
) stream) ¶assertion-fail-forced
) (format (eql :default)
) stream) ¶assertion-failed
) (format (eql :default)
) stream) ¶assertion-error
) (format (eql :default)
) stream) ¶clunit-test-report
) (format (eql :default)
) stream) ¶clunit-report
) (format (eql :default)
) stream) ¶clunit-report
)) ¶clunit-report
)) ¶The number of tests that was skipped during test executions.
clunit-test-report
)) ¶Non-nil if the test was skipped
clunit-test-report
)) ¶Non-nil if the test was skipped
clunit-test-report
)) ¶clunit-test-report
)) ¶A list of the suites this test belong.
clunit-test-suite
)) ¶clunit-test-suite
)) ¶The tests that belongs to this suite (list of symbols)
clunit-test-case
)) ¶clunit-test-case
)) ¶The actual test, a function with no arguments that returns non nil if the test passed
clunit-test-report
)) ¶Non-nil if the report passed
condition
.
this is a special case, if an unexpected condition
is signalled outside an assertion test, store the condition
description here.
(quote "")
:message
the expression that was tested.
(quote nil)
:expression
holds a list of form-value pairs, see function expand-forms for more detail.
(quote nil)
:forms
the value the expression was expected to return.
(quote nil)
:expected
the result that was returned from evaluating the expression.
(quote nil)
:returned
The number of tests with errors.
(quote nil)
:test-errors
The number of tests that failed.
(quote nil)
:test-fails
The total number of tests.
(quote nil)
:total-tests
condition
.
The DEPENDENCIES slot holds the names of the test cases that
this test case depends on. Using an indirect reference like this
allows us to easily undefine a test case without much cleaning up.
When we execute a test case and we resolve the references of the tests it depends on. If the object is not found it means the reference is now stale, so we remove the name from the list.
:dependencies
The actual test, a function with no arguments that returns non nil if the test passed
:test-function
The slots test-cases, child-suites and
parent-suites hold the symbol names of test cases and test suites
instead of the actual objects. using an indirect reference like this
allows us to undefine a test case or test suite.
When we execute a test suite and try to resolve the reference for an object. if the object is not found, it means the reference is now stale so the name of that test case or suite is removed.
A class for object with an identifier (the slot ’name’)
Jump to: | (
A C D E F G H M N P Q R S T U W |
---|
Jump to: | (
A C D E F G H M N P Q R S T U W |
---|
Jump to: | *
+
A C D E F M N P R S T |
---|
Jump to: | *
+
A C D E F M N P R S T |
---|
Jump to: | A C D F G M N P R S T U |
---|
Jump to: | A C D F G M N P R S T U |
---|