pytest-dev / pytest-forked

extracted --boxed from pytest-xdist to ensure backward compat
MIT License
62 stars 21 forks source link

Display test name before running it #29

Closed jhagege closed 3 years ago

jhagege commented 4 years ago

Hi, I am sometimes having a hard time troubleshooting failing tests stuck in an infinite loop. The reason is that output is being printed only if test finished (fail or success), but if it is stuck, then it is very hard to identify which test is stuck. Could you please suggest a pattern to print the test name to STDOUT / STDERR (on a CI server for example) before running any test ? Thanks much.

jhagege commented 4 years ago

Also, are you aware of any pattern to retrieve logs from an ongoing test (stuck test for example) ?