-
Notifications
You must be signed in to change notification settings - Fork 76
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
Allow custom commands to write to stdout and stderr #139
Comments
FWIW opened a PR for this one here: #140 |
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via SetStderr(string). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Picking up API conversation from #217 (review)
I don't think this is actually something we can test. A The real problem is the API here. We're trying to work around the fact that a Fixing this properly, however, would either require us to declare a new API via another field on
|
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes #139
Similarly, expose (*TestScript).stderr via Stderr(). Closes rogpeppe#139
Hey there, I've had a couple cases where it'd be nice to be able to write to stdout and stderr from inside a custom command.
For example:
Unfortunately I haven't found a way to use the command's results within the test. The workaround I use now is to write a file and then read from it.
What I'd like to be able to do is write a testscript like this:
And the failure case:
! render 'index.gohtml' stderr 'bad HTML' -- index.gohtml -- <html
Thanks for extracting and improving this package!
The text was updated successfully, but these errors were encountered: