pytest-dev / pytest-dev/pytest

Standardize ANSI markup on all terminal output sections

Open
#10,269 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic: reporting type: proposal
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

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

Contributor guide

Open the contributing guide

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 locating the code and tests that render terminal section headings, then compare the ANSI markup used by each section, including the rerun summary when pytest-rerunfailures is installed. Done means the headings use a consistent style and the requested colors for PASSES, FAILURES, and ERRORS are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.