trycmd provides snapshot testing for CLIs and more!
Since the original announcement we have added:
- Literate tests: We'll run test cases in markdown files
- Example testing: We'll compile and make your examples available to your test cases (e.g. see port of clap's examples which found issues both in the examples and in clap)
- Variable substitution, modeled after cargo's tests, including user-defined variables. Built-in variables include
[EXE]
,[CWD]
, and[ROOT]
. -
debug
feature flag to see whats going on under the hood
See an example port from assert_cmd to trycmd.
Would love feedback on on some of the known questions or whatever else is on your mind!