SchemeUnit: keyword args for setup and teardown

Noel Welsh <noelwelsh-/[email protected]> Wed, 17 Nov 2004 13:33:00 -0800 (PST)
Newsgroups gmane.lisp.scheme.plt.schematics,gmane.lisp.scheme.plt.schematics.general
Message-ID <[email protected]>
Hi all,

The latest version of SchemeUnit contains setup and
teardown actions for test cases and test suites specified
by keyword arguments.

E.g.:

(make-test-case
  "name"
  (assert = 2 (+ 1 1))
  setup (display "setup")
  teardown (display "teardown"))

make-test-suite works the same way, except the keywords
setup and teardown must be quoted (as make-test-suite is a
function, not a macro).

I'm not entirely happy with this mechanism and some more
work is required (e.g. what happens if a test suite setup
or teardown action fails?) so if you have suggestions
please send them to me.

This is the last task other than documentation for
SchemeUnit 2.0.  So it should be released soon -- just in
time to redevelop it for v300!

Noel

=====
Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8