<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 23, 2013 at 12:14 AM, Greg Hendershott <span dir="ltr"><<a href="mailto:greghendershott@gmail.com" target="_blank">greghendershott@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In my opinion the "most Rackety" way to do tests these days is what<br>
Laurent mentioned: The `test` submodule.<br></blockquote><div><br></div><div>When the tests become too long, I prefer to put them in a separate file though.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
(Although when I do this, occasionally I wish for "test-folding" to<br>
hide the tests temporarily. Neat feature to add to DrRacket and/or<br>
emacs Racket mode?)<br></blockquote><div><br></div><div>I've been wanting that for a long time too.<br></div><div>If only DrRacket had line-folding, we could fold any kind of submodule, <br></div><div>like documentation, test, main.<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Given that, I'm not familiar enough with Ruby "guard" to know what's<br>
left for a Racket "guard" to do -- just the detection for re-running<br>
some test automatically? As Laurent mentioned DrRacket already will do<br>
that automatically as you edit each file. For users of other editors,<br>
or for other scenarios like fetching from git, I suppose this would<br>
amount to keeping some cache of the last-modified or MD5 of all the<br>
sources, and running `raco test` ones that have changed?<br></blockquote><div><br></div><div>Another automatic and easy way is to run the tests on file save, as a plugin for DrRacket.<br></div><div>It should not be too difficult to extend Grant Rettke's DrSync plugin:<br>
<a href="http://planet.plt-scheme.org/display.ss?package=drsync.plt&owner=grettke">http://planet.plt-scheme.org/display.ss?package=drsync.plt&owner=grettke</a><br></div></div><br></div><div class="gmail_extra">Laurent<br>
</div></div>