[racket] Price of RackUnit

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Wed Jul 6 20:56:20 EDT 2011

Every time your code is "required" by someone else, all of your tests end up
being executed. As well as side-effects your code may have.

[]'s

Rodolfo Carvalho


On Wed, Jul 6, 2011 at 20:40, Patrick King <slowthought at gmail.com> wrote:

> I find myself doing stuff like...
>
> #lang racket
> (require rackunit)
> (provide my-function ...)
>
> ; My code
>
> (define (my-function ...) ...) ...
>
> ; My tests ...
>
> (check* ...) ... ; * in the wildcard sense
>
> ... so that I never evade testing my code. Does another developer end up
> testing my code? A user?
> In other words, if I don't export the test code via *require*, what gets
> executed by importers? of source? of executables?
> IMHO, even if the answer is "all of it", it's worth it, but the answer may
> affect how tests are written.
>
> Pat
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110706/68c32430/attachment.html>

Posted on the users mailing list.