radicle-cli-test

Crates.ioradicle-cli-test
lib.rsradicle-cli-test
version0.10.0
sourcesrc
created_at2023-02-16 07:24:18.765312
updated_at2024-06-05 14:44:46.376506
descriptionRadicle CLI test library
homepagehttps://radicle.xyz
repository
max_upload_size
id786561
size24,088
Alexis Sellier (cloudhead)

documentation

README

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();
}
Commit count: 0

cargo fmt