I'm trying to understand how to integrate some quickcheck tests with cabal. This gist suggests that the quickCheck
function returns non-zero status on failure, but I am not getting that behavior, so using cabal's exitcode-stdio-1.0
test-suite type doesn't seem to work for me unless I want to call error
all over my tests.
The cabal user guide also mentions a detailed-1.0
test-suite, but AFAICT this doesn't exist yet. Is that still the case?
It seems from answers like this one that a lot of people are using the test-framework package. That's overkill for me, but is that what I should use?
I'm left kind of unsatisfied by this situation.
Versions of things I'm using:
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
QuickCheck-2.4.1.1
import Test.QuickCheck.Test
forisSuccess
to "be in scope". In case anyone is also having that problem. On a side note, is there a way to make it nicer? (ie. not have to do bothimport Test.QuickCheck
but alsoTest.QuickCheck.Test
?) – Linet