Pytest Logging

From NovaOrdis Knowledge Base
Revision as of 05:39, 9 June 2022 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 ...