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)
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)
26 (ensure-condition lift
::testsuite-not-defined
27 (lift::find-testsuite
(gensym) :errorp t
)))
29 (addtest (test-find-test-suite)
31 (ensure-error (lift:find-testsuite
'test-finding
:errorp t
)))