projects
/
fiveam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the default-test-args slot from test-suite.
[fiveam.git]
/
t
/
tests.lisp
diff --git
a/t/tests.lisp
b/t/tests.lisp
index
77909f5
..
8eadcc2
100644
(file)
--- a/
t/tests.lisp
+++ b/
t/tests.lisp
@@
-10,6
+10,9
@@
`(let ((,results (with-*test-dribble* nil (run ',test-name))))
,@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)
;;;; Test the checks
(test (is1 :suite test-suite)
@@
-20,7
+23,7
@@
(is-true t)
(is-false nil))
(is-true t)
(is-false nil))
-(test (is2 :suite test-suite)
+(test (is2 :suite test-suite :fixture null-fixture)
(is (plusp 0))
(is (< 0 -1))
(is (not (plusp 1)))
(is (plusp 0))
(is (< 0 -1))
(is (not (plusp 1)))
@@
-28,7
+31,7
@@
(is-true nil)
(is-false t))
(is-true nil)
(is-false t))
-(test is
+(test (is :profile t)
(with-test-results (results is1)
(is (= 6 (length results)))
(is (every #'test-passed-p results)))
(with-test-results (results is1)
(is (= 6 (length results)))
(is (every #'test-passed-p results)))