Files
heartwood/crates/radicle-cli-test/README.md
T
Lorenz Leutgeb 5bc2dc677b repo: Move workspace crates into crates subdirectory
This keeps the top level of the repo cleaner, e.g.
<https://github.com/radicle-dev/heartwood> scrolls less and
<https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/>
might show more files at the top level.

This way we also don't have to explicitly name all crates in
`Cargo.toml`.
2025-06-09 15:09:21 +02:00

36 lines
552 B
Markdown

# radicle-cli-test
Test your CLI with the help of markdown descriptions.
## Example
Test flows are described in markdown like this example:
````` markdown
# 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:
``` rust
use std::path::Path;
use radicle_cli_test::TestFormula;
#[test]
fn kind_echo() {
TestFormula::new()
.file(Path::new("./kind-echo.md"))
.unwrap()
.run()
.unwrap();
}
```