Expand description
Ergonomic CLI binary integration testing with fluent assertions on stdout, stderr, and exit code.
philiprehberger-assert-cmd provides a fluent builder for spawning CLI processes and
asserting on their output. Zero dependencies — uses only std::process::Command.
§Example
use philiprehberger_assert_cmd::cmd;
cmd("echo")
.arg("hello")
.run()
.unwrap()
.assert_success()
.assert_stdout_contains("hello");Structs§
- Cmd
- A builder for configuring and running a CLI command.
- CmdOutput
- The result of running a command, with chainable assertion methods.
Enums§
- CmdError
- Errors that can occur when running a command.