radicle-heartwood-lfs/crates/radicle-cli-test
Fintan Halpenny b397b1a249 workspace: Update snapbox to 1.2 2026-06-03 09:40:26 +02:00
..
src workspace: Update snapbox to 1.2 2026-06-03 09:40:26 +02:00
Cargo.toml log: New crate for logger implementations 2026-05-11 16:44:37 +01:00
README.md chore: Fix spelling errors with codespell 2025-11-01 12:11:02 +01:00

README.md

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 like:

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

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