3 unstable releases

0.9.0 Mar 26, 2024
0.1.1 Feb 16, 2023
0.1.0 Feb 16, 2023

#187 in Testing

Download history 9/week @ 2024-02-20 77/week @ 2024-02-27 141/week @ 2024-03-26 27/week @ 2024-04-02

168 downloads per month
Used in 3 crates (via radicle-cli)

MIT/Apache and GPL-3.0-or-later

25KB
564 lines

radicle-cli-test

Test your CLI with the help of markdown descriptions.

Example

Test flows are described in markdown like this example:

# Echoing works

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:

use std::path::Path;
use radicle_cli_test::TestFormula;

#[test]
fn kind_echo() {
    TestFormula::new()
        .file(Path::new("./kind-echo.md"))
        .unwrap()
        .run()
        .unwrap();
}

Dependencies

~37–50MB
~899K SLoC