-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is this used with yesod-test? #42
Comments
I wrote Effectful Property Testing which has my approach for it - but that has the assumption that you're doing some You can use a lambda to get the spec = withApp do
it "gimme" \testAppApp -> do
-- now i'm in IO
arrange (runYesodExample testAppApp) do
-- now i'm writing a property
xs <- forAll $ Gen.wahtever
act do
get $ SomeRouteR xs
htmlAnyContain "p" xs
assert do pure () But unfortunately with You may be interested in |
Thank you for the prompt and detailed response!
Are you referring to Separately, I take it that the last line in your example isn't actually needed? |
If you have the more specific typed functions |
Given I have some typical yesod-test scaffolding like this
…how do I run yesod tests with hspec-hedgehog?
I'd like to write something like this (which, of course, doesn't work).
The text was updated successfully, but these errors were encountered: