You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
test integration::called_without_args ... FAILED
failures:
---- integration::called_without_args stdout ----
thread 'integration::called_without_args' panicked at 'CLI assertion failed: `cargo run --` StdErr mismatch: diff:
+Compiling invsearch v0.1.0 (file:///.../invsearch.rs)
Finished dev [unoptimized + debuginfo] target(s) in 0.62 secs
Running `target/debug/invsearch`
No arguments provided. Please provide files to parse.
', /home/steveej/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/assert_cli-0.5.3/src/assert.rs:319:12
note: Run with `RUST_BACKTRACE=1` for a backtrace.
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.