Crate assert_cmd[−][src]
Assert process::Command - Easy command initialization and assertions.
[dependencies]
assert_cmd = "0.3"
Example
Here's a trivial example:
ⓘThis example is not tested
extern crate assert_cmd; use std::process::Command; use assert_cmd::prelude::*; fn main() { let mut cmd = Command::main_binary().unwrap(); cmd.assert().success(); }
Relevant crates
Other crates that might be useful in testing command line programs.
Modules
| cargo |
Simplify running |
| prelude |
Extension traits that are useful to have available. |
Structs
| Assert |
Assert the state of an |
| OutputError |
|
| StdInCommand |
|
Traits
| CommandStdInExt |
Write to |
| IntoCodePredicate |
Used by |
| OutputAssertExt |
Assert the state of an |
| OutputOkExt |
Convert an |
Type Definitions
| OutputResult |
|