Hspec: How to suppress successful test results

Viewed 181

Is there anyway to prevent successful tests from being printed out to screen? At the moment I have a lot of tests with really long inputs and I only really care about seeing the fails?

Edit: I am running my tests with stack test

Solution:

Thanks to the answer from @mb14, I was able to search for what I was looking for.

running your test file directly:

you can use:

runhaskell testfile.hs --format=failed-examples

or

runhaskell testfile.hs -f failed-examples

and to run via stack test:

stack test --test-arguments=--format=failed-examples

source

1 Answers
Related