radicle-heartwood-lfs/radicle-cli-test
cloudhead c6a8a00055
Update `rust-toolchain` to 1.80
Fix new clippy warnings.
2024-08-06 14:37:21 +02:00
..
src Update `rust-toolchain` to 1.80 2024-08-06 14:37:21 +02:00
Cargo.toml Update `radicle` crate to 0.12.0 2024-07-18 16:22:14 +02:00
README.md cli-test: Complete cargo metadata 2023-02-16 14:55:33 +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 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();
}