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].

[1]: http://hackage.haskell.org/packages/archive/hspec/0.6.0/doc/html/Test-Hspec-Monadic.html
[2]:  https://github.com/snoyberg/wai-app-static/blob/master/tests/runtests.hs

On Sun, Jun 19, 2011 at 3:47 AM, Michael Snoyman <michael@snoyman.com> wrote:
The package intended to help with this is wai-test[1]. It's not yet
fully-featured, but handles basic cases (check if something exists in
the output, confirm status codes, etc) well enough. I'm not sure if
we're overall better off improving wai-test for more sophisticated
testing, or make it easy to combine wai-test with some external
testing tools (Selenium, Ruby stuff, etc).

Michael

[1] http://hackage.haskell.org/package/wai-test

On Fri, Jun 17, 2011 at 11:37 PM, Ian Duncan <iand675@gmail.com> wrote:
> 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.
>
> Any help would be appreciated.
> _______________________________________________
> web-devel mailing list
> web-devel@haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>

_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel