Pytest Logging

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

pytest captures the stdout and stderr generated while running the tests, and that is why they cannot be seen in the running terminal, unless the test fails. To disable this behavior and allow stdout and stderr propagation, start pytest with:

pytest -s|--capture=no ...