Skip to content

Ugly error messages when using cabal run #20

Open
@LightAndLight

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions