assert_cli
assert_cli copied to clipboard
Need at least one example using `main_binary` and/or `cargo_binary` to actually test a Rust CLI app.
The docs don't show how to test a cli application written in Rust.
Like, there are no examples in the documentation that actually show how to do this. The main_binary
and cargo_binary
functions are mentioned, but without showing how to use them to do anything useful.
If this crate main audience are Rust programmers wanting to test Rust CLI applications, having some examples showing how to test an actual Rust cli application would significantly lower the barrier of entry to use this crate.
Agreed, these functions need docs. I’ve been meaning to get back to this crate and the ongoing API refactor (I’m sorry I haven’t been around much, @epage!) and more detailed docs are most certainly on the list!
For now, though, do you have any concrete issues with these helpers? (The
are just shortcuts for cargo run --
.)
gnzlbg [email protected] schrieb am So. 18. Feb. 2018 um 11:29:
The docs don't show how to test a cli application written in Rust.
Like, there are no examples in the documentation that actually show how to do this. The main_binary and cargo_binary functions are mentioned, but without showing how to use them to do anything useful.
If this crate main audience are Rust programmers wanting to test Rust CLI applications, having some examples showing how to test an actual Rust cli application would significantly lower the barrier of entry to use this crate.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/killercup/assert_cli/issues/89, or mute the thread https://github.com/notifications/unsubscribe-auth/AABOX9T6C6e16JFq4bzdJ42-OXZkTGRRks5tV_uMgaJpZM4SJpGD .