haskell / haskell/cabal

Add support for colors to testsuite

Open
#5,167 0 comments 1 reaction 0 assignees View on GitHub
cabal-testsuite meta: easy priority: low type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

The `cabal-testsuite`'s output is imho difficult to comprehend visually, especially when more than a single test fails.

Maybe adding color support (either via `ansi-terminal` or by using the few ANSI escape sequences we need directly) to highlight the structure of the output (e.g. to make it more obvious where the output for one test-case ends, and the output for another starts) may go a long way.

Color support should ideally detect whether it's being directed at a console or directed to a file (and then disable it), and/or give the ability to control color output via a `--color` flag.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.