I'm driving my CliRunner testing from pytest. pytest will capture stdout/stderr by default, and display them when an assertion fails. As CliRunner captures all of the output itself, I don't get any guidance as to what my application has done on failure, without adding explicit debugging code to each assertion.
I'd like to be able to do something like CliRunner(echo=True) so that I get the output of its run both in its attributes and actually written to stdout/stderr.
I'm driving my
CliRunnertesting from pytest. pytest will capture stdout/stderr by default, and display them when an assertion fails. AsCliRunnercaptures all of the output itself, I don't get any guidance as to what my application has done on failure, without adding explicit debugging code to each assertion.I'd like to be able to do something like
CliRunner(echo=True)so that I get the output of its run both in its attributes and actually written to stdout/stderr.