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: "import Test.Hspec.Monadic" [1]. We are using it in wai-app-static now, where there is a quickcheck example that uses "prop" [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"><<a href="mailto:michael@snoyman.com">michael@snoyman.com</a>></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'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'm not sure if<br>
we'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 <<a href="mailto:iand675@gmail.com">iand675@gmail.com</a>> wrote:<br>
> I'm wondering if anybody has developed an effective methodology so far for implementing tests for yesod apps. Ideally, I'd like to use QuickCheck to hammer some stuff I'm working on, but I'm having trouble figuring out the best way to do so.<br>
><br>
> Any help would be appreciated.<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>
><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>