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

Adjust display of test function failure to entire function #16

Open
joshuadavidthomas opened this issue Feb 23, 2022 · 2 comments
Open

Comments

@joshuadavidthomas
Copy link
Collaborator

Currently on test failures, the failed line is hightlighted +-3 lines. In the default pytest TerminalRunner, the entire test function (including any marks) up to the failed line is displayed.

I believe this is the correct DX as it gives the entire context for the failure without having to jump back to the source code.

Screenshots: pytest vs pytest-rich

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants