-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable CliRunner to echo output to stdout/stderr #737
Labels
f:test runner
feature: cli test runner
Comments
Would also love to see this. I haven't dug deep into the internals for
|
I also came up against this. For the record my solution was the following helper method:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm driving my
CliRunner
testing from pytest. pytest will capture stdout/stderr by default, and display them when an assertion fails. AsCliRunner
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.The text was updated successfully, but these errors were encountered: