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 <[email protected]> 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
>
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to