Context: I am using Python with Behave (BDD).
Whether I run my tests from the command line (behave) or from a custom main(), the behavior is the same: the test runs
from command line, you can use the following:
--no-capture for any stdout output to be printed immediately.
--no-capture
--no-capture-stderr for any stderr output to be printed immediately.
--no-capture-stderr