On a quick skim, looks like nice work. If you want to see if it handles a lot of the cases (better or as well) that lisp-unit was designed for, see
http://www.cs.northwestern.edu/academics/courses/325/programs/exercise-tests...
This is what tests my students' solutions to exercises from Graham and elsewhere. I'd prefer to use a standard test framework in my class, but I would want that particular file to continue to be simple for novices to read and understand, since they're the target audience.
I'll try making the translation myself sometime but it won't be for the next few months at least, due to time constraints.
I notice that you didn't include an "assert-prints" though obviously it's not hard to use some wrapper macro like
(assert-equal "...." (collect-output (print-dots 4)))
I would recommend adding something comparable to lisp-unit's assert-equality that lets you handle special equality testers, like set-equal, epsilon-equal, etc. (I used to call it assert-predicate but that implied a unary rather than binary predicate.)
Nice job.
On Nov 10, 2012, at 11:41 AM, Tapiwa Gutu wrote:
Faithful hackers,
I decided to take up the challenge laid down here http://fare.livejournal.com/169346.html and try to consolidate the Common Lisp unit testing frameworks. I have written a framework that aims to consolidate all the major features of all your frameworks mentioned in this blog http://aperiodic.net/phil/archives/Geekery/notes-on-lisp-testing-frameworks.....
You can find it on Github https://github.com/tgutu/clunit. I also wrote a blog on the development of the framework and reasons for it here http://ml.sun.ac.za/2012/11/09/developing-a-unit-test-framework-part-1/ if you are interested.
I would very much appreciate it, if you could join me in this effort and we all work together torwards making this project a success.
Regards, Tapiwa
Christopher Riesbeck Home page: http://www.cs.northwestern.edu/~riesbeck Calendar: http://calendar.yahoo.com/criesbeck