how to enable/output debug log message during unittest? #16574
Unanswered
zillionare
asked this question in
Q&A
Replies: 2 comments 1 reply
|
this is how unittest is launched: cd /apps/alpha ; /usr/bin/env /conda/envs/alpha/bin/python /root/.vscode-server/extensions/ms-python.python-2021.6.842802838-dev/pythonFiles/lib/python/debugpy/launcher 45549 -- /root/.vscode-server/extensions/ms-python.python-2021.6.842802838-dev/pythonFiles/pyvsc-run-isolated.py /root/.vscode-server/extensions/ms-python.python-2021.6.842802838-dev/pythonFiles/testlauncher.py /apps/alpha pytest --override-ini junit_family=xunit1 --rootdir /apps/alpha --junit-xml=/tmp/tmp-334NAUGvCSubiCI.xml ./tests/backtesting/test_strategy.py::TestStrategy::test_backtest the launcher is pytest, and it may capture all console output. How should I specify --capture=no for pytest in vscode? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Test framework is unittest. The log facility is correctly configured( not work even with simple
print). However, the log messages are not shown in integrated terminal console.Any idea?
All reactions