hi Ian, please let us know what you come up with. As Michael mentioned, we are open to a lot of potential ideas, like even integrating with browser/html testing tools from other languages (like Capybara from Ruby). We want to create a nice default way to test Yesod apps, including adding tests to the generator. One tip I have for you is to use hspec- it makes for much more readable tests IMHO. Use the monadic DSL I created with: &quot;import Test.Hspec.Monadic&quot; [1]. We are using it in wai-app-static now, where there is a quickcheck example that uses &quot;prop&quot; [2].<div>

<div><br></div><div>[1]: <a href="http://hackage.haskell.org/packages/archive/hspec/0.6.0/doc/html/Test-Hspec-Monadic.html">http://hackage.haskell.org/packages/archive/hspec/0.6.0/doc/html/Test-Hspec-Monadic.html</a></div>

<div>[2]:  <a href="https://github.com/snoyberg/wai-app-static/blob/master/tests/runtests.hs">https://github.com/snoyberg/wai-app-static/blob/master/tests/runtests.hs</a></div><div><div><br><div class="gmail_quote">On Sun, Jun 19, 2011 at 3:47 AM, Michael Snoyman <span dir="ltr">&lt;<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The package intended to help with this is wai-test[1]. It&#39;s not yet<br>
fully-featured, but handles basic cases (check if something exists in<br>
the output, confirm status codes, etc) well enough. I&#39;m not sure if<br>
we&#39;re overall better off improving wai-test for more sophisticated<br>
testing, or make it easy to combine wai-test with some external<br>
testing tools (Selenium, Ruby stuff, etc).<br>
<br>
Michael<br>
<br>
[1] <a href="http://hackage.haskell.org/package/wai-test" target="_blank">http://hackage.haskell.org/package/wai-test</a><br>
<div><div></div><div class="h5"><br>
On Fri, Jun 17, 2011 at 11:37 PM, Ian Duncan &lt;<a href="mailto:iand675@gmail.com">iand675@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m wondering if anybody has developed an effective methodology so far for implementing tests for yesod apps. Ideally, I&#39;d like to use QuickCheck to hammer some stuff I&#39;m working on, but I&#39;m having trouble figuring out the best way to do so.<br>


&gt;<br>
&gt; Any help would be appreciated.<br>
&gt; _______________________________________________<br>
&gt; web-devel mailing list<br>
&gt; <a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
&gt;<br>
<br>
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</div></div></blockquote></div><br></div></div></div>