haskell / haskell/haskell-language-server

Custom tasty `consoleReporter`

Open
#4,592 2 comments 1 reaction 0 assignees View on GitHub
type: enhancement
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

There are two issues with the current `consoleReporter` (which are both mostly nitpicks and my personal preference).

1. It can be hard to find the test case that was failing during a test run (especially on CI)
1. The alignment of the test output can be sometimes hard to read (see https://github.com/haskell/haskell-language-server/pull/4591 where this caused an issue for *me*)

I am proposing that we introduce a custom `consoleReporter` which fixes both of these "shortcomings".
I have a prototype that makes the output look like this:

![Image](https://github.com/user-attachments/assets/72cc7c2f-dd7e-4d0e-a080-2a89cf118a54)

This makes the output more terse, but not necessarily easier to read. It is only easier to read, if the test names are too long, like in #4591, which can be generally worked around (by using shorter test names).

Additionally, I would propose a succinct summary at the end of the test execution if the test failed, which should fix my first issue with the `consoleReporter`.
If we had a custom `consoleReporter`, this would be relatively easy to add.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.