pytest-dev / pytest-dev/pytest-reportlog
remove ANSI escape sequences from the report messages
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 104
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
pytest has somewhat recently added support for coloring diffs of builtin structures like list or dict, which makes ANSI escape sequences appear in the messages pytest-reportlog writes to the log file.
Since that log file is intended to be machine-readable, I think reportlog should either strip the escape sequences from error messages, or pytest should add colors after the execution of the hook that reportlog registers to. I'd guess the former to be more realistic since I'd expect modifying pytest to that effect to be really tricky.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by reproducing a colored pytest diff and tracing how pytest-reportlog writes error messages to its machine-readable log; done means the log contains no ANSI escape sequences while preserving the error content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100