Common Lisp Package: XLUNIT

This is the XLUnit Framework.

README:

FUNCTION

Public

FAILURE (FORMAT-STR &REST ARGS)

Signal a test failure and exit the test.

Undocumented

ASSERT-EQL (V1 V2 &OPTIONAL MESSAGE)

ASSERT-EQUAL (V1 V2 &OPTIONAL MESSAGE)

ASSERT-NOT-EQL (V1 V2 &OPTIONAL MESSAGE)

MAKE-TEST-RESULTS

Private

FAILURE-MESSAGE (MESSAGE &OPTIONAL FORMAT-STR &REST ARGS)

Signal a test failure and exit the test.

FIND-TEST-GENERIC-FUNCTIONS (INSTANCE)

Return a list of symbols for generic functions specialized on the class of an instance and whose name begins with the string 'test-'. This is used to dynamically generate a list of tests for a fixture.

Undocumented

MAKE-TEST-FAILURE (TEST CONDITION)

MACRO

Public

Undocumented

ASSERT-CONDITION (CONDITION FORM &OPTIONAL MESSAGE)

ASSERT-FALSE (V &OPTIONAL MESSAGE)

ASSERT-TRUE (V &OPTIONAL MESSAGE)

DEF-TEST-METHOD (METHOD-NAME ((INSTANCE-NAME CLASS-NAME) &KEY (RUN T)) &BODY METHOD-BODY)

GET-SUITE (CLASS-NAME)

Private

Undocumented

ASSERT-NOT-CONDITION (CONDITION FORM &OPTIONAL MESSAGE)

GENERIC-FUNCTION

Public

SET-UP (TEST)

Method called before performing a test, should set up the environment the test-case needs to operate in.

TEAR-DOWN (TEST)

Method called after performing a test. Should reverse everything that the setup method did for this instance.

Undocumented

ADD-TEST (OB NEW-TEST)

NAMED-TEST (NAME SUITE)

REMOVE-TEST (TEST SUITE)

RUN (OB &KEY (HANDLE-ERRORS T))

RUN-ON-TEST-RESULTS (TEST RESULT &KEY (HANDLE-ERRORS T))

RUN-TEST (TEST)

SUMMARY (RESULT)

TEXTUI-TEST-RUN (OB)

WAS-SUCCESSFUL (RESULT)

Private

Undocumented

ADD-ERROR (OB TCASE CONDITION)

ADD-FAILURE (OB TCASE CONDITION)

ADD-LISTENER (RES LISTENER)

END-TEST (OBJ TCASE)

ERROR-COUNT (RES)

FAILURE-COUNT (RES)

IS-FAILURE (FAILURE)

MESSAGE (CONDITION)

SETFMESSAGE (NEW-VALUE CONDITION)

RUN-BASE (TEST)

RUN-PROTECTED (TEST RES &KEY (HANDLE-ERRORS T))

START-TEST (OBJ TCASE)

SLOT-ACCESSOR

Public

Undocumented

SUITE (OBJECT)

SETFSUITE (NEW-VALUE OBJECT)

TESTS (OBJECT)

SETFTESTS (NEW-VALUE OBJECT)

Private

DESCRIPTION (OBJECT)

Short description of this test-case, uses in reports

METHOD-BODY (OBJECT)

A function designator which will be applied to this instance to perform that test-case.

SETFMETHOD-BODY (NEW-VALUE OBJECT)

A function designator which will be applied to this instance to perform that test-case.

NAME (OBJECT)

The name of this test-case, used in reports.

Undocumented

ERRORS (OBJECT)

SETFERRORS (NEW-VALUE OBJECT)

EXISTING-SUITES (OBJECT)

SETFEXISTING-SUITES (NEW-VALUE OBJECT)

FAILED-TEST (OBJECT)

FAILURES (OBJECT)

SETFFAILURES (NEW-VALUE OBJECT)

LISTENERS (OBJECT)

SETFLISTENERS (NEW-VALUE OBJECT)

OSTREAM (OBJECT)

SETFOSTREAM (NEW-VALUE OBJECT)

RESULT-TEST (OBJECT)

RUN-TESTS (OBJECT)

SETFRUN-TESTS (NEW-VALUE OBJECT)

STOP (OBJECT)

SETFSTOP (NEW-VALUE OBJECT)

TEST-SUITE-NAME (OBJECT)

THROWN-CONDITION (OBJECT)

CLASS

Public

TEST-CASE

Base class for test-cases.

TEST-RESULTS

Results of running test(s)

Undocumented

TEST

TEST-SUITE

Private

TEST-FAILURE

Stored failures/errors in test-results slots

Undocumented

TEST-LISTENER

TEXTUI-TEST-RUNNER

CONDITION

Private

ASSERTION-FAILED

Base class for all test failures.