You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often use cabal run my-library-tests to run tests because it prints incremental, coloured output while the tests are running. cabal test my-library only prints on failure.
Today I had a test failure, and I found the errors weren't very nice. Instead of annotating the source like in this image, the error appeared like this:
I figured out I can work around this using cabal test my-library --test-show-details=direct, which gives incremental coloured output and annotated test failures. I'd expect cabal run my-library-tests to behave the same way.
The text was updated successfully, but these errors were encountered:
Priority level (IMO): "nice to have".
I often use
cabal run my-library-tests
to run tests because it prints incremental, coloured output while the tests are running.cabal test my-library
only prints on failure.Today I had a test failure, and I found the errors weren't very nice. Instead of annotating the source like in this image, the error appeared like this:
I figured out I can work around this using
cabal test my-library --test-show-details=direct
, which gives incremental coloured output and annotated test failures. I'd expectcabal run my-library-tests
to behave the same way.The text was updated successfully, but these errors were encountered: