trycmd
trycmd copied to clipboard
Snapshot testing for a herd of CLI tests
See https://docs.rs/expect-test/latest/expect_test/ - Its brittle around finding the source file and the external snapshot
#106 kicked off support for #92 but the match logic doesn't have a way to say "I don't care about any other key-value pairs". How should this be represented?
#106 kicked off support for #92 but the match logic doesn't handle globbing over multiple array elements. This will be important for ndjson support as it will be represented as...
Like the value from special handling of text vs binary, asserting with knowledge of structured data would help gloss over irrelevant details and allow smarter wildcards - [x] json (#106)...
We could convert ANSI codes to HTML or something else The question is if we should find a way to force the terminal to look like a TTY for auto-detection...
Thanks for this awesome library, it looks really awesome. I was wondering if there is some support or setting that'd allow testing a binary that expects inputs from the user...
Split off from #101 and would likely need it to be implemented first, to be of real use. It would be really cool, to have some custom format for the...
I noticed that this fails due to "backslash to slash normalization". ```toml bin.name = "bin-fixture" stdout = '\' [env.add] stdout = '\' ``` It is probably useful for things that...
Wanted to add test to https://github.com/rust-lang/cargo-bisect-rustc before switching from `StructOpt` to `Clapv3` but it is seems tests are failing because the output contains backticks (and backslashes, same as https://github.com/assert-rs/trycmd/issues/91) A...
`*.trycmd` files support this but not `*.toml`. This discrepancy can push someone to `*.trycmd` files when they might be best served by the extra control of `*.toml` files. Open Issues...