Skip to content
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

Ugly error messages when using cabal run #20

Open
LightAndLight opened this issue Jul 12, 2022 · 0 comments
Open

Ugly error messages when using cabal run #20

LightAndLight opened this issue Jul 12, 2022 · 0 comments

Comments

@LightAndLight
Copy link

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:

forAll0 =
  <some value>
         
━━━ Failed (- lhs) (+ rhs) ━━━
- <left value>
+ <right value>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant