-
Notifications
You must be signed in to change notification settings - Fork 23
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
Question: stop tests on first failure (--fail-fast) #55
Comments
Hspec provides this functionality with
(not sure how well either of these options will work in the context of shelltestrunner, though)
Alternatively: If your are set on |
Thanks for your answer! Oh, you are the author of hspec, what an honor :) I used it (and also QuickCheck2) a lot in an early project.
That looks good. As far as I understand, I would have to convert the tests to Hspec and then just call I've found the options page, some are similar to what shelltestrunner/test-framework use. But I fear it would be much refactoring work in shelltestrunner, for me. It would probably be less work to add a I have to think about if or how shelltestrunner could combine or allow both alternatives: hspec and test-framework. Maybe a
Good idea, that would be a simple approach. shelltestrunner reports |
I think the issue here is that |
What's the best way to cancel the test runner on the first failure (like bash's
-e
/-o errexit
)? Is it even possible?I looked in
RunnerOptions
, but I didn't find it here.In my case, the
Test
s are actually HUnitTest
s which are IO actions (-> shelltestrunner).I can't even just use die or fail in the IO action because the test runner continues on error:
I'd be glad if an experienced Haskeller could give me a hint!
The text was updated successfully, but these errors were encountered: