You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would also love to see this, in verbose and non-verbose mode. There could perhaps be an icon or spinner used when a test is running, before it finishes.
@hmaarrfk / @Tbruno25 / @brettdh: Since you have expressed an interest in this feature, would you like to contribute to the project and work on implementing it?
Without pytest-sugar, when running pytest in verbose mode, the name of the current test is printed immediately.
This is very useful for long running tests since you know which test is hanging, and which test might be killed.
However, with pytest-sugar, the name of the test is only printed when the test succeeds.
I've provided an example of the code to reproduce this as well some minimal environment information.
The current environment in question is running Python 3.9.
Let me know if there is any more information you need to recreate the bug/"missing feature".
Conda environment
Command used to run pytest
pytest test_me.py
Test file
test_me.py
Output
Without pytest-sugar. Notice how I captured the name of
test_sleep[2]
before the result of the test appeared.With pytest-sugar. Notice how I was able to capture the screenshot while
test_sleep[4]
was running, but before the name of the test appearedThe text was updated successfully, but these errors were encountered: