X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=t%2Ftests.lisp;h=47a92fcede08751d482f6371d65296309061a43b;hb=168a8cb290c6d9b3fa40e500fd044ecacebb5429;hp=77909f56c5cccd74d117187153ec6834e7f60193;hpb=df94e5e6fa7251673b060fa4341bbf740358633e;p=fiveam.git diff --git a/t/tests.lisp b/t/tests.lisp index 77909f5..47a92fc 100644 --- a/t/tests.lisp +++ b/t/tests.lisp @@ -4,12 +4,17 @@ (in-suite :it.bese.FiveAM) -(def-suite test-suite :description "Suite for tests which should fail.") +(def-suite test-suite + :description "Suite for tests which should fail." + :default-test-args '(:fixture null-fixture :compile-at :run-time)) (defmacro with-test-results ((results test-name) &body body) `(let ((,results (with-*test-dribble* nil (run ',test-name)))) ,@body)) +(def-fixture null-fixture () + `(progn ,@(&body))) + ;;;; Test the checks (test (is1 :suite test-suite) @@ -20,7 +25,7 @@ (is-true t) (is-false nil)) -(test (is2 :suite test-suite) +(test (is2 :suite test-suite :fixture foo) (is (plusp 0)) (is (< 0 -1)) (is (not (plusp 1)))