This repository was archived by the owner on Dec 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
stderr().is() fails due to cargo output #45
Labels
Comments
Oh, that is a very good point. That we use should also pass |
Something that would help in testing this and the crate all-around is to create a bin for it. It'd be handy for it to have command line flags for it to print to stdout/stderr, process stdin, process env variables, return arbitrary codes, etc. |
epage
added a commit
to epage/assert_cli
that referenced
this issue
Oct 13, 2017
We use cargo run behind the scenes to run the main binary but that should only be an implementation detail. Fixes assert-rs#45
epage
added a commit
to epage/assert_cli
that referenced
this issue
Oct 13, 2017
We use cargo run behind the scenes to run the main binary but that should only be an implementation detail. Fixes assert-rs#45
epage
added a commit
to epage/assert_cli
that referenced
this issue
Oct 13, 2017
We use cargo run behind the scenes to run the main binary but that should only be an implementation detail. Fixes assert-rs#45
epage
added a commit
to epage/assert_cli
that referenced
this issue
Oct 17, 2017
We use cargo run behind the scenes to run the main binary but that should only be an implementation detail. Fixes assert-rs#45
Thanks @epage! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey, during my first attempts of writing integration tests I've stumbled upon an issue when the program is supposed to exit with an error output.
My test looks like this:
The issue is that the error outputs of cargo and the integration test are mixed and the test fails because it's not an exact match.
I know that I could just use
.contains(..)
instead of.is(..)
, but IMHO that's only a workaround.Please let me know if I'm doing something unexpected, as this is my very first attempt of writing (integration) tests in Rust.
The text was updated successfully, but these errors were encountered: