-
Notifications
You must be signed in to change notification settings - Fork 10
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
Hspec as an alternative test framework? #25
Conversation
Thanks! I agree that we should move off test-framework, if only because it's no longer maintained. Of the current big two, tasty and hspec, I think tasty is the most successful and the most future-proof, and I'd favour choosing that. But I'll review this when I can. |
Hi @schoettl, when you have time could you rebase this against latest master. |
I had a look at this. I see both runners are still supported for now, I guess there's no harm in keeping both until we have tested a bit more. Merging, thank you! |
CI failed with stackage nightly/GHC 9.4, so we probably need some bounds or code changes for newer hspec. |
Fixed. |
Belatedly testing this; at least in the shelltestrunner and hledger repos, it seems to run a few tests but very slowly/hangingly. To reproduce in this repo, add --hspec in Makefile and run |
Repro:
It works with echo but not cat. Perhaps the fix is in shelltest.hs:runCommandWithInput. |
Hi @simonmichael, thanks for testing and fixes. I plan to look at it this weekend. |
@simonmichael does anything speak against hspec as alternative test framework?
Downsides:
Benefits:
--fail-fast
option, see Question: stop tests on first failure (--fail-fast) haskell/test-framework#55 (I have many long running tests that I'd like to stop on first failure)..hspec
config fileSources:
shelltest -h
and http://hspec.github.io/options.html