trycmd icon indicating copy to clipboard operation
trycmd copied to clipboard

Snapshot testing for a herd of CLI tests

Results 48 trycmd issues
Sort by recently updated
recently updated
newest added

See https://docs.rs/expect-test/latest/expect_test/ - Its brittle around finding the source file and the external snapshot

enhancement
A-snapbox

#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?

enhancement
breaking-change
A-snapbox

#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...

enhancement
breaking-change
A-snapbox

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)...

enhancement
A-snapbox

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...

enhancement
A-trycmd
A-snapbox

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...

enhancement

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...

enhancement

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...

enhancement
A-trycmd

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...

bug
A-trycmd

`*.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...

question
A-trycmd