[plt-scheme] More SchemeUnit confusion

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jun 8 16:07:50 EDT 2009

On Sun, Jun 7, 2009 at 2:11 PM, Todd O'Bryan<toddobryan at gmail.com> wrote:
> What's the SchemeUnit equivalent of JUnit setUp and tearDown?

before/after/around.  You can also build an abstraction on top of
test-case with a simple define-syntax:

(define-syntax super-test-case
  (syntax-rules ()
    [(_ expr ...) (test-case (around my-begin expr ... my-around))]))

There was a discussion about this a little while ago, and I though the
situation should be improved. The multiple context of SchemeUnit make
this a little trickier than you might think; I decided a parameter
current-around (or similar) would be best but never got around to
implementing it.

N.


Posted on the users mailing list.