-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
short test summary and -vv #12713
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a detailed description of the bug or problem you are having
(I've done my best to try and see if this is a duplicate and I'm sorry if it is, but it seems it's not)
Following #11777 (8.2.0) | changelog:
The short summary can become completely impractical with
-vv
because each failure message could be hundreds of lines long.It seems to be a strange choice given #11777 is about the text being truncated in:
and I don't see the original poster complaining about the short summary, but both were changed?
Was it the intended change ? Is there something we can do to keep the original -vv behaviour for the test output, and keep the "short test summary" short ? It's actually quite useful in CI that the last thing printed is the list of tests that failed and not why each of them failed: it's a summary and the full output is available above anyway.
I think the decision a lot of versions ago to add an excerpt of the failure reason to the short summary was a good compromise: it used otherwise unused space to add more useful info. But if that excerpt start taking more screen real estate space (potentially 100x more) than the summary itself, I'm not sure I understand why we would want that?
Maybe we could introduce a different "letter" (or a different option or something) to
-r
to get the list of tests without any kind of explanation of why they failed? Maybe the fix for #11777 should have affected the "failure explanation" and not the short summary?output of
pip list
from the virtual environment you are usingpytest and operating system versions
pytest==8.3.2
Ubuntu 22.04.4 LTS
minimal example if possible
The text was updated successfully, but these errors were encountered: