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
# cat /etc/issue
Debian GNU/Linux 9 \n \l
# uname -a
Linux d65b03da3615 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019 x86_64 GNU/Linux
# pipenv --version
pipenv, version 2018.11.26
Test 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)
deftest_all():
fortestintestsforthinginmatrix# do thingsassert ()...
Output
(app) root@d65b03da3615:/app# py.test
Test session starts (platform: linux, Python 3.7.3, pytest 4.5.0, pytest-sugar 0.9.2)
cachedir: .pytest_cache
rootdir: /app, inifile: pytest.ini
plugins: sugar-0.9.2, cov-2.7.1
collecting ...
<<<HANGS HERE>>> (takes about 20sec+ to show the next line)
tests/integration/a_slow_test.py::test_all ✓ 100% ██████████
<<<suddenly then it prints the test ^^^, 100% done>>>
Results (21.00s):
1 passed
--
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).
mcallaghan-bsm
changed the title
docker+venv, stdout is not printed per test rendering sugar moot
docker+venv, stdout is not printed per test before running test
May 29, 2019
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.
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: