Common Lisp Package: TAP-UNIT-TEST

README:

FUNCTION

Public

Undocumented

FAIL (STR &REST ARGS)

GET-TEST-CODE (NAME &OPTIONAL (PACKAGE *PACKAGE*))

GET-TESTS (&OPTIONAL (PACKAGE *PACKAGE*))

LOGICALLY-EQUAL (X Y)

REMOVE-ALL-TESTS (&OPTIONAL (PACKAGE *PACKAGE*))

REMOVE-TESTS (NAMES &OPTIONAL (PACKAGE *PACKAGE*))

SET-EQUAL (L1 L2 &KEY (TEST #'EQUAL))

UNORDERED-EQUAL (L1 L2 &KEY (TEST #'EQUAL))

USE-DEBUGGER (&OPTIONAL (FLAG T))

Private

PACKAGE-NAMES (TEST-THUNKS)

Turns union of packages that defined tests into a string like 'pkg1_pkg2'.

RUN-TEST-THUNKS (TEST-THUNKS)

Run test-thunks and report results in TAP format.

Undocumented

CHECK-RESULTS (TYPE FORM EXPECTED ACTUAL EXTRAS TEST)

COLLECT-FORM-VALUES (FORM VALUES)

DEFAULT-LISTENER (PASSED TYPE NAME FORM EXPECTED ACTUAL EXTRAS TEST-COUNT PASS-COUNT)

EXPAND-ASSERT (TYPE FORM BODY EXPECTED EXTRAS &KEY (TEST #'EQL))

EXPAND-ERROR-FORM (FORM)

EXPAND-EXTRAS (EXTRAS)

EXPAND-MACRO-FORM (FORM ENV)

EXPAND-OUTPUT-FORM (FORM)

GET-FAILURE-MESSAGE (TYPE)

GET-PACKAGE-TABLE (PACKAGE &KEY CREATE)

GET-TEST-NAME (FORM)

GET-TEST-THUNK (NAME PACKAGE)

GET-TEST-THUNKS (NAMES &OPTIONAL (PACKAGE *PACKAGE*))

INTERNAL-ASSERT (TYPE FORM CODE-THUNK EXPECTED-THUNK EXTRAS TEST)

RECORD-RESULT (PASSED TYPE FORM EXPECTED ACTUAL EXTRAS)

RUN-TEST-THUNK (*TEST-NAME* THUNK)

SHOW-FAILURE (TYPE MSG NAME FORM EXPECTED ACTUAL EXTRAS)

SHOW-SUMMARY (NAME TEST-COUNT PASS-COUNT &OPTIONAL ERROR-COUNT)

STORE-TEST-CODE (NAME CODE &OPTIONAL (PACKAGE *PACKAGE*))

TEST-PASSED-P (TYPE EXPECTED ACTUAL TEST)

USE-DEBUGGER-P (E)

MACRO

Public

Undocumented

ASSERT-EQ (EXPECTED FORM &REST EXTRAS)

ASSERT-EQL (EXPECTED FORM &REST EXTRAS)

ASSERT-EQUAL (EXPECTED FORM &REST EXTRAS)

ASSERT-EQUALITY (TEST EXPECTED FORM &REST EXTRAS)

ASSERT-EQUALP (EXPECTED FORM &REST EXTRAS)

ASSERT-ERROR (CONDITION FORM &REST EXTRAS)

ASSERT-EXPANDS (&ENVIRONMENT ENV EXPANSION FORM &REST EXTRAS)

ASSERT-FALSE (FORM &REST EXTRAS)

ASSERT-PRINTS (OUTPUT FORM &REST EXTRAS)

ASSERT-TRUE (FORM &REST EXTRAS)

DEFINE-TEST (NAME &BODY BODY)

RUN-ALL-TESTS (&OPTIONAL PACKAGE &REST TESTS)

RUN-TESTS (&REST NAMES)

WITH-TEST-LISTENER (LISTENER &BODY BODY)

GENERIC-FUNCTION

Private

Undocumented

TEST-FAILURE-MESSAGE (CONDITION)

VARIABLE

Private

Undocumented

*PASS-COUNT*

*TEST-COUNT*

*TEST-LISTENER*

*TEST-NAME*

*TESTS*

*USE-DEBUGGER*

CONDITION

Private

Undocumented

TEST-FAILURE