Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color of percentage on warning is green with -v #13201

Open
jakkdl opened this issue Feb 7, 2025 · 1 comment
Open

color of percentage on warning is green with -v #13201

jakkdl opened this issue Feb 7, 2025 · 1 comment
Labels
topic: reporting related to terminal output and user-facing messages and errors

Comments

@jakkdl
Copy link
Member

jakkdl commented Feb 7, 2025

The color of the percentage will differ depending on the outcome of a test, where it's green if passing, yellow if warning, and red if erroring. except on warning + -v, where the percentage will still be green.
Presumably because PASSED is still green and treated as fully succesful. So maybe PASSED should also be yellow (if test has warnings), and/or replaced with WARNING

Image
Image

noticed when messing around a bit with pygments-pytest

@The-Compiler
Copy link
Member

Reproducer:

import warnings

def test_foo():
    warnings.warn(UserWarning("aoeu"))

@The-Compiler The-Compiler added the topic: reporting related to terminal output and user-facing messages and errors label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: reporting related to terminal output and user-facing messages and errors
Projects
None yet
Development

No branches or pull requests

2 participants