Common Lisp Package: LIFT-TEST

README:

FUNCTION

Private

SET-EQUAL (LIST1 LIST2 &REST ARGS &KEY TEST KEY)

Returns t if list1 and list2 are equal (as sets). If list1 and list2 are not equal returns (as multiple values) nil and two lists. The first list contains the elements in list1 and not in list2 and the second list contains elements in list2 and not in list1.

Undocumented

%MAKE-TEST-ENSURE-SAME-TEST (FN)

CAUSE-AN-ERROR

SLURP (PATHNAME)

TESTSUITE-TEST-COUNT (TESTSUITE)

WRITE-CONFIG (LINES)

GENERIC-FUNCTION

Private

Undocumented

MAKE-TEST-RESULT (FOR TEST-MODE &REST ARGS)

SLOT-ACCESSOR

Private

Undocumented

ERRORS (OBJECT)

ERRORS (OBJECT)

SETFERRORS (NEW-VALUE OBJECT)

SETFERRORS (NEW-VALUE OBJECT)

FAILURES (OBJECT)

FAILURES (OBJECT)

SETFFAILURES (NEW-VALUE OBJECT)

SETFFAILURES (NEW-VALUE OBJECT)

SKIPPED-TEST-CASES (OBJECT)

SETFSKIPPED-TEST-CASES (NEW-VALUE OBJECT)

SKIPPED-TESTSUITES (OBJECT)

SETFSKIPPED-TESTSUITES (NEW-VALUE OBJECT)

TEST-INTERACTIVE? (OBJECT)

SETFTEST-INTERACTIVE? (NEW-VALUE OBJECT)

TEST-MODE (OBJECT)

SETFTEST-MODE (NEW-VALUE OBJECT)

TESTS-RUN (OBJECT)

SETFTESTS-RUN (NEW-VALUE OBJECT)

VARIABLE

Private

*TEST-MAXIMUM-ERROR-COUNT*

The maximum numbers of errors to allow during a [run-tests][]. If `*test-maximum-error-count*` is nil, then a call to run-tests will continue regardless of the number of errors. If it a positive integer, then run-tests will stop as soon as the number of test-errors if greater than or equal to its value. Setting this to some small value can help prevent running lengthly test-suites when there are many errors. See also [\*test-maximum-failure-count\*][].

*TEST-MAXIMUM-FAILURE-COUNT*

The maximum numbers of failures to allow during a [run-tests][]. If `*test-maximum-failure-count*` is nil, then a call to run-tests will continue regardless of the number of failures. If it a positive integer, then run-tests will stop as soon as the number of test-failures if greater than or equal to its value. Setting this to some small value can help prevent running lengthly test-suites when there are many failures. See also [\*test-maximum-error-count\*][].

Undocumented

*A*

*DYNAMICS-AFTER-SETUP*

*EXPECT-ERROR*

*EXPECT-FAILURE*

*TEST-DEFAULT-INITARGS-HELPER-VAR*

*TEST-EXPECTED-ERRORS-HELPER-2*

CLASS

Private

DYNAMIC-VARIABLES-HELPER-1

It's important that the dynamic variable is not marked as special in the global environment.

HANDLE-SERIOUS-CONDITION

LIFT should keep running tests even when a testcase gets a serious condition. (though maybe there should be an option that these cancel testing instead.)

TEST-TEST-SUITE-WITH-NO-TESTS

Case 168

Undocumented

DYNAMIC-VARIABLES-HELPER-2

DYNAMICS-AFTER-SETUP

DYNAMICS-AFTER-SETUP-HELPER

ENSURE-NO-WARNING-HELPER

EXPECT-ERROR

EXPECT-ERROR-HELPER

EXPECT-ERROR-HELPER-TEST-CASE

EXPECT-FAILURE

EXPECT-FAILURE-HELPER

HANDLE-SERIOUS-CONDITION-HELPER

LIFT-TEST

LIFT-TEST-ENSURE

LIFT-TEST-ENSURE-COMPARISONS

LIFT-TEST-ENSURE-HELPER

LIFT-TEST-SETUP-TEARDOWN

LIFT-TEST-SETUP-TEARDOWN-1

LIFT-TEST-SETUP-TEARDOWN-2

LIFT-TEST-SETUP-TEARDOWN-3

ORDER-OF-OPERATIONS

ORDER-OF-OPERATIONS-HELPER

ORDER-OF-OPERATIONS-HELPER-SUBCLASS

TEST-BREAK-ON-FAILURE

TEST-BREAK-ON-FAILURE-HELPER

TEST-CONFIG-FILES

TEST-CREATING-MULTIPLE-TESTS

TEST-CREATING-MULTIPLE-TESTS-HELPER

TEST-DEFAULT-INITARGS

TEST-DEFAULT-INITARGS-ABSTRACT

TEST-DEFAULT-INITARGS-CHILD

TEST-DEFAULT-INITARGS-HELPER

TEST-DEFAULT-INITARGS-PARENT

TEST-DEPENDENCIES

TEST-DEPENDENCIES-HELPER

TEST-DYNAMIC-VARIABLES

TEST-DYNAMIC-VARIABLES-1

TEST-DYNAMIC-VARIABLES-2

TEST-DYNAMIC-VARIABLES-HELPER-CHILD

TEST-DYNAMIC-VARIABLES-HELPER-OTHER-PARENT

TEST-DYNAMIC-VARIABLES-HELPER-PARENT

TEST-DYNAMIC-VARIABLES-HELPER-TWO-PARENTS-A

TEST-DYNAMIC-VARIABLES-HELPER-TWO-PARENTS-B

TEST-DYNAMIC-VARIABLES-INHERITANCE

TEST-DYNAMIC-VARIABLES-SYNTAX-1

TEST-DYNAMIC-VARIABLES-SYNTAX-2

TEST-ERROR-CATCHING

TEST-ERROR-CATCHING-HELPER-BODY

TEST-ERROR-CATCHING-HELPER-DYNAMIC-VARIABLES

TEST-ERROR-CATCHING-HELPER-EQUALITY-TEST

TEST-ERROR-CATCHING-HELPER-SETUP

TEST-ERROR-CATCHING-HELPER-SLOT-INIT

TEST-ERROR-CATCHING-HELPER-TEARDOWN

TEST-EXPECTED-ERRORS

TEST-EXPECTED-ERRORS-HELPER

TEST-EXPECTED-ERRORS-HELPER-2

TEST-FIND-TEST-SUITE

TEST-IGNORE-WARNINGS

TEST-IGNORE-WARNINGS-HELPER

TEST-IGNORE-WARNINGS-HELPER-NO-WARNING

TEST-IGNORE-WARNINGS-HELPER-WARNING

TEST-INHERITED-FUNCTIONS

TEST-INHERITED-FUNCTIONS-HELPER

TEST-INHERITED-FUNCTIONS-NEG

TEST-INHERITED-FUNCTIONS-POS

TEST-INITIALIZE-SLOTS

TEST-INITIALIZE-SLOTS-HELPER

TEST-INTERACTION

TEST-INTERRUPTS

TEST-INTERRUPTS-HELPER

TEST-LOG-FILE

TEST-LOG-FILE-HELPER

TEST-MAXIMUM-PROBLEMS

TEST-MAXIMUM-PROBLEMS-HELPER

TEST-MAXIMUM-PROBLEMS-HELPER-ERRORS

TEST-MAXIMUM-PROBLEMS-HELPER-FAILURES

TEST-NON-SPECIAL-DYNAMIC-VARIABLES

TEST-NORMAL-CONDITIONS

TEST-NORMAL-CONDITIONS-HELPER

TEST-NORMAL-CONDITIONS-HELPER-2

TEST-SCRATCHPAD-RESETS

TEST-SCRATCHPAD-RESETS-HELPER

TEST-SINGLE-SETUP

TEST-SINGLE-SETUP-CHILD-A

TEST-SINGLE-SETUP-CHILD-A-1

TEST-SINGLE-SETUP-CHILD-B

TEST-SINGLE-SETUP-CHILD-B-1-A

TEST-SINGLE-SETUP-CHILD-B-1-B

TEST-SINGLE-SETUP-CHILD-B-1-SS

TEST-SINGLE-SETUP-CHILD-C

TEST-SINGLE-SETUP-CHILD-C-1

TEST-SINGLE-SETUP-HELPER

TEST-SKIPPING

TEST-SKIPPING-HELPER

TEST-SKIPPING-HELPER-A

TEST-SKIPPING-HELPER-A-1

TEST-SKIPPING-HELPER-A-2

TEST-SKIPPING-VIA-CONFIG

TEST-SUITE-WITH-NO-TESTS-HELPER

CONDITION

Private

Undocumented

TEST-SIMPLE-CONDITION-CONDITION-1

TEST-SIMPLE-CONDITION-CONDITION-2