[racket-dev] [racket] Disable/Enable Tests

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Mon Nov 28 11:05:20 EST 2011

> It would be a whole lot nicer to insert> (disable-tests)> and> (enable-tests)> in the code, or perhaps to wrap a bunch of lines of code in> (with-tests-disabled ...)> or> (with-tests-enabled ...)

The Tracer does essentially this in reverse: by default you use the
Tracer language and "nothing happens" (ie, code runs and produces
answers but there's no visible tracing), but you can turn on tracing

1.1 (trace-failed-checks)

Adding (trace-failed-checks) will trace only failing checks, including
failed instances of check-expect, check-within, check-error,
check-member-of, and check-range.

1.2 (trace-all)

Adding (trace-all) will trace all top level expressions and failed checks.

1.3 (trace-explicit)

Adding (trace-explicit) will trace failing checks and any expression
wrapped in (trace ...).


Posted on the dev mailing list.