Release Notes
- Add
strip_ansi_escape_codessetting which removes ANSI escape sequences
(color codes, cursor movement, etc.) from snapshot content before comparison.
Requires thefiltersfeature. #899 (@pierluigilenoci) - Add opt-in support for YAML literal blocks for multiline strings in snapshot
metadata fields such asdescriptionandexpression. Set
INSTA_YAML_BLOCK_STYLE=1to enable. #851 (@ivov) - Setting
CI=truenormally makescargo insta testbehave as though--check
was passed. Explicit snapshot handling options such as--acceptnow take
precedence over this environment variable, allowing users to override this
behavior if they want to. #924 - Fix
cargo insta test --profilebeing forwarded to nextest as the nextest
profile instead of the cargo build profile; it now translates to
--cargo-profilefor the nextest runner. Add--nextest-profileto select
the nextest profile. #910 - Fix
cargo insta pending-snapshotsprinting unusable\\?\-prefixed paths
on Windows. The--snapshotfilter now also accepts partial paths: any
trailing path suffix of the snapshot file matches, so a bare
--snapshot my_test.snapworks. #904 - Accepting a binary snapshot no longer fails with
os error 2when its data
file is missing (e.g. gitignored and not committed). #914
Install cargo-insta 1.48.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.ps1 | iex"Download cargo-insta 1.48.0
| File | Platform | Checksum |
|---|---|---|
| cargo-insta-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| cargo-insta-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| cargo-insta-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| cargo-insta-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
| cargo-insta-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |