question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Standardize ANSI markup on all terminal output sections

See original GitHub issue

Currently (7.2.0.dev264+g6ad32a9c5), the console heading for some sections is colorized (‘warnings’, ‘short test summary info’); while other sections are not (ERRORS, FAILURES, PASSES, and ‘rerun test summary info’ if the pytest-rerunfailures plugin is installed). Also, the ‘test session starts’ and ‘short test summary info’ sections are in bold, while none of the others are.

Enhancement request is to standardize ANSI markup for the various sections. If it were up to me, I would simply add colors to the section headings that are not colored: PASSES (green), FAILURES (red), ERRORS (yellow).

Screen Shot 2022-09-04 at 5 26 52 PM Screen Shot 2022-09-04 at 5 27 14 PM

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffwright13commented, Oct 10, 2022

@doublevcodes - if you would like help reproducing the above issue (i.e. if you want to run those tests), let me know. They are basically taken from https://github.com/jeffwright13/pytest-tui/tree/main/demo-tests.

0reactions
RonnyPfannschmidtcommented, Oct 11, 2022

It should be largely contained in the terminalwriter

It’s likely some preparing cleanup is necessarily

It would be nice if we could prepare the code for eventual direct integration of stuff like the ide plugins for testing and pytest-TUI

Terminalwriter has a lot of painful legacy

Read more comments on GitHub >

github_iconTop Results From Across the Web

ANSI escape code - Wikipedia
ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals...
Read more >
List of ANSI color escape sequences - terminal - Stack Overflow
I'm looking for a list of all supported colors and options (like bright and blinking). As there are probably differences between the terminals...
Read more >
Build your own Command Line with ANSI escape codes
This post will explore the basics of how you can control the terminal from any command-line program, with examples in Python, and how...
Read more >
ANSI Standard (X3.64) Control Sequences for Video ...
Many computer terminals and terminal emulators support color and cursor control through a system of escape sequences. One such standard is commonly referred...
Read more >
Is there any manual page for colored shell output?
Even with apropos color or something similar. So, the question is - where I can find reliable manuals? terminal · colors · documentation....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found