Test your CLI with the help of markdown descriptions.
Test flows are described in markdown like this example:
````` markdown
When I call echo, it answers:
$ echo "ohai"
ohai
`````
Say this is placed in kind-echo.md
, this is what the corresponding test case
would look lke:
``` rust use std::path::Path; use radicleclitest::TestFormula;
fn kind_echo() { TestFormula::new() .file(Path::new("./kind-echo.md")) .unwrap() .run() .unwrap(); } ```