[web-devel] QuickCheck / Unit Testing Yesod apps?
greg at gregweber.info
Sun Jun 19 19:53:34 CEST 2011
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" . We are using it in wai-app-static now, where there
is a quickcheck example that uses "prop" .
On Sun, Jun 19, 2011 at 3:47 AM, Michael Snoyman <michael at snoyman.com>wrote:
> The package intended to help with this is wai-test. 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).
>  http://hackage.haskell.org/package/wai-test
> On Fri, Jun 17, 2011 at 11:37 PM, Ian Duncan <iand675 at 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 at haskell.org
> > http://www.haskell.org/mailman/listinfo/web-devel
> web-devel mailing list
> web-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel