trycmd
trycmd copied to clipboard
Snapshot testing for a herd of CLI tests
Cargo needs this for testing `cargo test`. This was found while testing the fix for #348.
See https://github.com/eza-community/eza/pull/1005 For testing, normally, we run tests with `just itest` inside of our repo, which requires nix. Example of breakage: ``` eza> Testing tests/ptests/ptest_a689ab7558716dda.toml ... failed eza> Exit: success...
In short, right now, it's not possible to use a tempdir to sandbox with `*.trycmd` files. I am in a specific situation with a CLI where I need the sandbox...
This would be useful when dealing with non-reproducible commands (where the output may change frequently). In this case, checking against the output is unrealistic, but it is still useful to...
Closes #374 (my own issue). This adds a new mode triggered by `TRYCMD=status` which only tests the exit status of commands, ignoring outputs. As proposed in #374, this would be...
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [libtest-mimic](https://redirect.github.com/LukasKalbertodt/libtest-mimic) | dependencies | minor | `0.7.0` -> `0.8.0` | --- ### Release...
I'm trying to define a variable with contains a random value and want to inject it somehow into tests executed by trycmd. I can mask the value with `insert_var(..)` and...
[The documentation of `trycmd`](https://docs.rs/trycmd/0.15.7/trycmd/index.html) makes a couple of references to `fs.sandbox = true`, but does not explain what that option does, nor what is done instead if it is false....