Fixed WHILE-MEASURING macro for case when CATCH-ERRORS-P argument is given
[lift.git] / test / finding-tests.lisp
blob38056e299c77f98881c7b0e3508f33ac08aa67dc
1 (in-package #:lift-test)
3 (defpackage #:one-test-package
4 (:use #:common-lisp #:lift))
6 (defpackage #:two-test-package
7 (:use #:common-lisp #:lift))
9 (deftestsuite one-test-package::test-finding () ())
11 (deftestsuite two-test-package::test-finding () ())
13 (deftestsuite test-find-test-suite (lift-test) ())
15 (addtest (test-find-test-suite)
16 simple-searching
17 (ensure-same (lift::find-testsuite 'test-find-test-suite)
18 'test-find-test-suite)
19 (ensure-same (lift::find-testsuite 'one-test-package::test-finding)
20 'one-test-package::test-finding)
21 (ensure-same (lift::find-testsuite 'two-test-package::test-finding)
22 'two-test-package::test-finding))
24 (addtest (test-find-test-suite)
25 not-such-suite
26 (ensure-condition lift::testsuite-not-defined
27 (lift::find-testsuite (gensym) :errorp t)))
29 (addtest (test-find-test-suite)
30 two-many-tests
31 (ensure-error (lift:find-testsuite 'test-finding :errorp t)))