This is the xptest Reference Manual, version 2003.4.21, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 08:07:36 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
xptest
Extreme Programming Testing Suite
Kevin M. Rosenberg <kmr@debian.org>
Craig Brozensky
Public domain
The XPTEST package is toolkit for building test suites, very much inspired by the test frameworks that the Extreme Programming crew made available for Smalltalk an other languages.
2003.4.21
xptestsuite.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
xptest/xptestsuite.lisp
xptest
(system).
add-test
(method).
add-test
(method).
def-test-fixture
(macro).
failure
(function).
make-test-case
(macro).
make-test-suite
(macro).
perform-test
(method).
remove-test
(method).
remove-test
(method).
report-result
(method).
report-result
(method).
run-test
(method).
run-test
(method).
setup
(method).
setup-testsuite-named
(method).
teardown
(method).
teardown-testsuite-named
(method).
test-failure
(condition).
test-named
(method).
test-result
(class).
tests
(method).
description
(reader method).
description
(reader method).
handler-case-if
(macro).
result-test
(reader method).
start-time
(reader method).
stop-time
(reader method).
test-assert
(macro).
test-errors
(reader method).
test-failures
(reader method).
test-fixture
(class).
test-name
(reader method).
test-suite
(class).
test-suite-name
(reader method).
test-thunk
(reader method).
tests-hash
(reader method).
(setf tests-hash)
(writer method).
unwind-protect-if
(macro).
Packages are listed by definition order.
xp-test-framework
This is the XP TestSuite Framework.
xp-test
xptest
common-lisp
.
add-test
(generic function).
def-test-fixture
(macro).
failure
(function).
make-test-case
(macro).
make-test-suite
(macro).
perform-test
(generic function).
remove-test
(generic function).
report-result
(generic function).
run-test
(generic function).
setup
(generic function).
setup-testsuite-named
(generic function).
teardown
(generic function).
teardown-testsuite-named
(generic function).
test-failure
(condition).
test-named
(generic function).
test-result
(class).
tests
(generic function).
description
(generic reader).
handler-case-if
(macro).
result-test
(generic reader).
start-time
(generic reader).
stop-time
(generic reader).
test-assert
(macro).
test-errors
(generic reader).
test-failures
(generic reader).
test-fixture
(class).
test-name
(generic reader).
test-suite
(class).
test-suite-name
(generic reader).
test-thunk
(generic reader).
tests-hash
(generic reader).
(setf tests-hash)
(generic writer).
unwind-protect-if
(macro).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Define a new test-fixture class. Works just like defclass, but ensure that test-fixture is a super.
Create a test-case which is an instance of FIXTURE. TEST-THUNK is the method that will be invoked when perfoming this test, and can be a symbol or a lambda taking a single argument, the test-fixture instance. DESCRIPTION is obviously what it says it is.
Returns a new test-suite. TESTSPECS are just like lists of arguments to MAKE-TEST-CASE.
Signal a test failure and exit the test.
test-suite
) (suite test-suite
)) ¶test-fixture
) (suite test-suite
)) ¶test-fixture
)) ¶Default method for performing tests upon a test-fixture.
test-suite
) (suite test-suite
)) ¶test-fixture
) (suite test-suite
)) ¶list
) &key stream verbose) ¶test-result
) &key stream verbose) ¶Print out a test-result object for a report to STREAM, default to standard-output. If VERBOSE is non-nil then will produce a lengthy and informative report, otherwise just prints wether the test passed or failed or errored out.
test-suite
) &key handle-errors) ¶test-fixture
) &key handle-errors) ¶Perform the test represented by the given test-case or test-suite. Returns one or more test-result objects, one for each test-case performed.
test-fixture
)) ¶Method called before performing a test, should set up the environment the test-case needs to operate in.
test-fixture
)) ¶Method called after performing a test. Should reverse everything that the setup method did for this instance.
string
) (suite test-suite
)) ¶test-suite
)) ¶Base class for all test failures.
simple-condition
.
The result of applying a test
:start-time
This slot is read-only.
:test
This slot is read-only.
:failures
This slot is read-only.
:errors
This slot is read-only.
test-suite
)) ¶automatically generated reader method
test-fixture
)) ¶Short description of this test-case, uses in reports
test-result
)) ¶automatically generated reader method
test
.
test-result
)) ¶automatically generated reader method
test-result
)) ¶automatically generated reader method
test-result
)) ¶automatically generated reader method
test-result
)) ¶automatically generated reader method
test-fixture
)) ¶The name of this test-case, used in reports.
test-suite
)) ¶automatically generated reader method
name
.
test-fixture
)) ¶A thunk or symbol which will be applied to this instance, a test-case, to perform that test-case. Defaults to ’perform-test
test-suite
)) ¶automatically generated reader method
test-suite
)) ¶automatically generated writer method
Base class for test-fixtures. Test-cases are instances of test-fixtures.
A thunk or symbol which will be applied to this instance, a test-case, to perform that test-case. Defaults to ’perform-test
(quote xp-test-framework:perform-test)
:test-thunk
This slot is read-only.
The name of this test-case, used in reports.
:test-name
This slot is read-only.
Short description of this test-case, uses in reports
:description
This slot is read-only.
:name
This slot is read-only.
(make-hash-table :test (quote equal))
:tests
"no description."
:description
This slot is read-only.
Jump to: | (
A D F G H M P R S T U |
---|
Jump to: | (
A D F G H M P R S T U |
---|
Jump to: | D E F N S T |
---|
Jump to: | D E F N S T |
---|
Jump to: | C F P S T X |
---|
Jump to: | C F P S T X |
---|