On Wed, Dec 16, 2015 at 03:50:08PM -0800, David K. Storrs wrote:
> Hi folks,
> 
> I'm just getting started with rackunit, and I was very surprised when I found 
> that it simply emits nothing if a test succeeds.  Every other testing 
> framework I've used before will print "ok" (or etc) on a successful test, so 
> that you can differentiate between "the test succeeded" and "the test wasn't 
> run."
> 
> check-equal? returns <void> so I can't just wrap it in another function that 
> prints "ok" on success.  Is there a way to tell rackunit that I want to see 
> successes?
You might want `test-begin` to wrap a suite of many checks, with a print "ok" 
at the end of the suite. This would only be run if no tests fail: 
http://docs.racket-lang.org/rackunit/api.html#(form._((lib._rackunit/main..rkt)._test-begin)).

You could also use the parameter `current-check-handler` to print "ok" after 
*each* test: 
http://docs.racket-lang.org/rackunit/internals.html#(def._((lib._rackunit/main..rkt)._current-check-handler))

-- 
William J. Bowman

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: PGP signature

Reply via email to