Every time your code is &quot;required&quot; by someone else, all of your tests end up being executed. As well as side-effects your code may have.<div><br></div><div>[]&#39;s</div><div><br></div><div>Rodolfo Carvalho<br>
<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 20:40, Patrick King <span dir="ltr">&lt;<a href="mailto:slowthought@gmail.com">slowthought@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I find myself doing stuff like...<br><br>#lang racket<br>(require rackunit)<br>(provide my-function ...)<br><br>; My code<br><br>(define (my-function ...) ...) ...<br><br>; My tests ...<br><br>(check* ...) ... ; * in the wildcard sense<br>


<br>... so that I never evade testing my code. Does another developer end up testing my code? A user?<br>In other words, if I don&#39;t export the test code via <b>require</b>, what gets executed by importers? of source? of executables?<br>


IMHO, even if the answer is &quot;all of it&quot;, it&#39;s worth it, but the answer may affect how tests are written.<br><br>Pat<br>
<br>_________________________________________________<br>
  For list-related administrative tasks:<br>
  <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br></blockquote></div><br></div>