radicle-heartwood-lfs/crates/radicle-cli-test
Lorenz Leutgeb ffbbb374c1 cli-test: Path separation compatible with Windows
Running tests on Windows requires separating the path to executables by
`;`.
2026-02-10 09:55:46 +00:00
..
src cli-test: Path separation compatible with Windows 2026-02-10 09:55:46 +00:00
Cargo.toml core: Introduce RepoId 2026-01-09 14:03:27 +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();
}