nicoddemus / pytest-rich

pytest + rich integration (proof of concept)
MIT License
220 stars 18 forks source link

Captured stdout/stderr not shown for test failures #77

Open edmorley opened 1 year ago

edmorley commented 1 year ago

With stock pytest, any captured stdout/stderr output is shown if a test fails, eg:

-------------------------------------------------- Captured stderr call ---------------------------------------------------
INFO:     Started server process [21684]
INFO:     Waiting for application startup.
...
ERROR:    Application startup failed. Exiting.

With pytest-rich (latest; aea02fbe1e8dc85d7216e343ec52d06244ddc8c9) and pytest 7.2.0 on Python 3.11, this isn't shown in the output.

joshuadavidthomas commented 1 year ago

Huh, I thought I had already submitted an issue to track this, but I cannot find it at the moment. Thanks @edmorley! This is definitely something I use and abuse so I'm interested in it working in pytest-rich.