;;;; *************************************************************************
;;;; FILE IDENTIFICATION
;;;;
-;;;; ID: $Id: suite.lisp,v 1.7 2003/08/05 22:56:25 kevin Exp $
+;;;; ID: $Id: suite.lisp,v 1.8 2003/08/06 11:37:23 kevin Exp $
;;;; Purpose: Suite functions for XLUnit
;;;;
;;;; *************************************************************************
(nreverse res)))
-;----------------------------------------------------------------------
-; macro def-test-method
-;
-; Creates the representation of a test method (included within a
-; test-case object) and add it to the corresponding suite class.
-; => clos version of the pluggable selector pattern
-;
-; use: (def-test-method test-assert-false (clos-unit-test)
-; (assert-true (eql (+ 1 2) 4) "comment"))
-;
-; new: it calls the textui-test-run function during eval, so to
-; allow the usual lisp-like incremental developing and test.
-;----------------------------------------------------------------------
-
-(defmacro def-test-method ((method-name instance-name class-name
- &key (run t))
+(defmacro def-test-method (method-name ((instance-name class-name)
+ &key (run t))
&body method-body)
`(let ((,instance-name
(make-instance ',class-name
(add-test (suite ,instance-name) ,instance-name)
(when ,run
(textui-test-run ,instance-name))))
-