how to enable/output debug log message during unittest? #16574
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? |
Beta Was this translation helpful? Give feedback.
-
it works with this configure |
Beta Was this translation helpful? Give feedback.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions