-
Notifications
You must be signed in to change notification settings - Fork 75
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
docker+venv, stdout is not printed per test before running test #174
Comments
PS: i just noticed the
|
I'm also running into this issue. I'm running an app in one container, and running pytest in another (there are reasons) and I just get the final output once the tests are completed and nothing streamed out. |
PYTHONUNBUFFERED? |
Or do you mean just the fact that nothing gets displayed before test is ran (i.e. is this related to Docker)? |
When reporting an issue, include a way to reproduce the bug. For example:
Command used to run py.test
py.test
(with configuration)
pytest.ini
Environment
docker + pipenv
it runs in a docker (based off
python:slim
), then enters the pipenv virtual environmentTest file
We have a PoC SLOW test, which makes this "more obvious".
(admittedly bad practice, this will be fixed later - but it has highlighted this issue w/ sugar in our environment)
Output
--
So, the issue is of course, that sugar seems to NOT be printing the progress at all until the test is DONE (which makes the entire point of sugar moot and not useful).
COMPARE, without sugar:
Without sugar, we at least get the CURRENT test being run, then dumps PASSED + 100%.
The text was updated successfully, but these errors were encountered: