Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

Retrieve actual stderr / stdout as string #94

Closed
rcoh opened this issue Mar 18, 2018 · 3 comments
Closed

Retrieve actual stderr / stdout as string #94

rcoh opened this issue Mar 18, 2018 · 3 comments

Comments

@rcoh
Copy link

rcoh commented Mar 18, 2018

I'd like to do more complex validation and actually grab stdout/stderr as strings and do my own asserts on them. Is that possible? I wasn't able to find it in the docs.

@epage
Copy link
Collaborator

epage commented Mar 18, 2018

Not at the moment. In the new api design I'm working on, I'm considering it.

@rcoh
Copy link
Author

rcoh commented Mar 18, 2018

Ideally I'd just do:
assert_cli::Assert::main_binary().stdout().execute() and I'd get a string.

@epage
Copy link
Collaborator

epage commented May 29, 2018

Addressed in assert_cmd
https://github.com/assert-rs/assert_cmd
assert_cli is going to morph into a wider-focused tool, including things like assert_fs. See #41

@epage epage closed this as completed May 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants