Skip to content
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

Feature request: providing stdout_only or stderr_only APIs #25

Closed
mssun opened this issue Jul 14, 2018 · 3 comments
Closed

Feature request: providing stdout_only or stderr_only APIs #25

mssun opened this issue Jul 14, 2018 · 3 comments

Comments

@mssun
Copy link
Contributor

mssun commented Jul 14, 2018

For example, I want to assert a command which only have specific stdout but does not have any stderr message. Currently, I have to write .stdout("msg").stderr("") or stdout("").stderr("error msg").

@mssun
Copy link
Contributor Author

mssun commented Jul 14, 2018

I'm debating on this suggestion myself. Besides these two, how about no output? Not sure if it's OK for current simplicity.

@epage
Copy link
Contributor

epage commented Jul 14, 2018

This feels very specific to me which makes me lean to not adding these.

One reason why it feels very specific is generally a test should verify one requirement and I suspect there are few applications where you have to have only one or neither to check most requirements.

@epage
Copy link
Contributor

epage commented Jul 14, 2018

Feel free to continue the conversation to help me better understand why this would be important, but for now I'm closing this.

@epage epage closed this as completed Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants