4 releases (2 breaking)
0.10.0 | Jun 5, 2024 |
---|---|
0.9.0 | Mar 26, 2024 |
0.1.1 | Feb 16, 2023 |
0.1.0 | Feb 16, 2023 |
#264 in Testing
Used in 4 crates
(via radicle-cli)
25KB
564 lines
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();
}
Dependencies
~47MB
~875K SLoC