5 releases (3 breaking)

0.11.0 Jun 3, 2025
0.10.0 Jun 5, 2024
0.9.0 Mar 26, 2024
0.1.1 Feb 16, 2023
0.1.0 Feb 16, 2023

#1257 in Testing

Download history

328 downloads per month

MIT/Apache

25KB
573 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–70MB
~1M SLoC