assert_cmd
assert_cmd copied to clipboard
Assert process::Command - Easy command initialization and assertions
Hi, I have made a little cli tool in Rust that I would like to add some tests to. I want to test the whole binary produced and check that...
Support for input/output/error redirection can be added. For example, if I want to execute `cargo run -- < FILE` or `cargo run -- < DIRECTORY`. We can have a `redirect_input`...
I'm trying to convert some tests to use `rexpect::spawn` to work around some issues with tty handling, but I'm having trouble re-using all my existing `assert_cmd` as I can't construct...
After hitting [this issue](https://users.rust-lang.org/t/using-a-background-warp-server-in-test/117343/7) I tried to add basic support for [`tokio::process::command`](https://docs.rs/tokio/latest/tokio/process/struct.Command.html) in #223. I was asked to raise an issue here to discuss whether this is desirable and, if...
After hitting [this issue](https://users.rust-lang.org/t/using-a-background-warp-server-in-test/117343/7) I tried to add basic support for [`tokio::process::command`](https://docs.rs/tokio/latest/tokio/process/struct.Command.html). It requires a new trait, `AsyncOutputAssertExt` in order to get the following to compile: ```rust tokio::process::Command::cargo_bin("my-bin") .expect("") .assert()...
Hi, I have a small feature request: I've tried the use assert_cmd to test if may application reacts correctly to unix signals. In order to do that, I need to...
What is the difference between these two macros? https://docs.rs/assert_cmd/latest/assert_cmd/cargo/index.html
In assert_cmd 2.1.0, the `assert_cmd::cargo::cargo_bin` function is deprecated, and the help text recommends to use `cargo::cargo_bin!` instead. However, the function and the macro both have the same name, so it's...