lpil / lpil/gleeunit

`gleam_test` always produces output with ANSI escape codes

Open
#63 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Gleam
Stars
49
Forks
38
PR merge metrics
No merged PRs in 30d

Description

I use the neovim `make` command to run `gleam test` from within neovim. This works, but the output of the test command uses ANSI escape codes for colored output. The output looks like the screenshot below. I was hoping there would be a way to turn off the colors?

Image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ANSI escape-code output from the `gleam test` command, including when it is run through Neovim's `make` command. Trace the `gleam_test` output path and identify how color is selected; done means test output can be used without ANSI codes in this environment.

Written by the indexing model from the issue text.

Assessment

Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.