Test CLI Applications
Currently, this crate only includes basic functionality to check the output of a child process is as expected.
Example
Here's a trivial example:
# extern crate assert_cli;
assert_cli_output.unwrap;
And here is one that will fail:
.unwrap;
assert_cli_output
this will show a nice, colorful diff in your terminal, like this:
-1337
+42
Alternatively, you can use the assert_cli!
macro:
# extern crate assert_cli;
#
Make sure to include the crate as #[macro_use] extern crate assert_cli;
.