Crates.io | radicle-cli-test |
lib.rs | radicle-cli-test |
version | 0.10.0 |
source | src |
created_at | 2023-02-16 07:24:18.765312 |
updated_at | 2024-06-05 14:44:46.376506 |
description | Radicle CLI test library |
homepage | https://radicle.xyz |
repository | |
max_upload_size | |
id | 786561 |
size | 24,088 |
Test your CLI with the help of markdown descriptions.
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();
}