Files
heartwood/crates/radicle-cli-test
Lorenz Leutgeb 44f52f4c18 cli-test: Fix uses of PATH_SEPARATOR
Some occurrences of ":" literals were missed earlier.
2026-02-16 08:39:55 +00:00
..
2026-02-16 08:39:55 +00:00

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();
}