The special handling for `rad` was introduced in commit `e63f33489055962845c70976bd9a40d0d84c6b1c` without further comment. Since we control the `$PATH` for spawning `rad`, and it is clear that `rad` must be on the path, we do not need any special handing. See also: - https://doc.rust-lang.org/std/process/struct.Command.html#method.new - https://github.com/rust-lang/rust/issues/15149 - https://github.com/rust-lang/rust/issues/37519 |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||
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();
}