NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #850 most downloaded on crates.io
A snapshot testing library for Rust
Last release 5 days ago
03 Oct 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
122 releases · first in 2019
Allow Option<&OsStr> snapshot names, such as Path::file_name() , without explicit string conversion. #929 ( @dislogical )
Option<&OsStr> snapshot names, such as Path::file_name(),cargo-insta binaries for ARM64 Linuxaarch64-unknown-linux-gnu). #942 (@AlJohri)INSTA_UPDATE=always in snapshot mismatch hints for filetempfile and rustix dependencies to fix buildscargo insta test --all-targets --test-runner nextest failing withcargo test --all-targets, it no longer runs doctests. #460curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.49.0/cargo-insta-installer.ps1 | iex"| 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-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | 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 |
This was written by Codex on behalf of @max-sixty
One column per quarter.
Add strip_ansi_escape_codes setting which removes ANSI escape sequences (color codes, cursor movement, etc.) from snapshot content before comparison.
strip_ansi_escape_codes setting which removes ANSI escape sequencesfilters feature. #899 (@pierluigilenoci)description and expression. SetINSTA_YAML_BLOCK_STYLE=1 to enable. #851 (@ivov)CI=true normally makes cargo insta test behave as though --check--accept now takecargo insta test --profile being forwarded to nextest as the nextest--cargo-profile for the nextest runner. Add --nextest-profile to selectcargo insta pending-snapshots printing unusable \\?\-prefixed paths--snapshot filter now also accepts partial paths: any--snapshot my_test.snap works. #904os error 2 when its datacurl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.ps1 | iex"| 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 |
Restore Send + Sync on Settings , Redactions , and Redaction by reverting the Arc to Rc change from 1.47.0, which was semver-breaking. #873 #874
Send + Sync on Settings, Redactions, and Redaction byArc to Rc change from 1.47.0, which was semver-breaking.Send + Sync bounds to Comparator trait for consistency withArc-based storage. #872curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.47.2/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.47.2/cargo-insta-installer.ps1 | iex"| 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 |
…collections like HashSet , which was a breaking change. #876
sort_maps. The change in 1.47.0 sorted allSeq values (including Vec), not just non-deterministic collections likeHashSet, which was a breaking change. #876curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.47.1/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.47.1/cargo-insta-installer.ps1 | iex"| 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 |
Add Comparator trait for customizing how snapshot values are compared. #872 ( @dstu )
Comparator trait for customizing how snapshot values are compared. #872 (@dstu)sort_maps to fix non-deterministic HashSet snapshots. #876assert_json_snapshot! or assert_yaml_snapshot! as alternatives. #880Send + Sync bounds from Redaction, allowing non-Send closures in dynamic redactions. #874Arc in Settings unnecessarily. #873 (@dstu)console to 0.16 and MSRV to 1.66. #885toml-edit to 0.25. #882 (@alexanderkjall)curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.47.0/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.47.0/cargo-insta-installer.ps1 | iex"| 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 |
Fix inline escaped snapshots incorrectly stripping leading newlines when content contains control characters like carriage returns. The escaped format
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.46.3/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.46.3/cargo-insta-installer.ps1 | iex"| 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 |
Fix inline snapshot corruption with carriage returns. The leading_space() function incorrectly treated \r as indentation, causing carriage returns to
leading_space() function incorrectly treated \r as indentation, causing carriage returns to be stripped from snapshot content. #866< 0.4.17 upper bound on globset dependency. #864curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.46.2/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.46.2/cargo-insta-installer.ps1 | iex"| 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 |
Fix inline snapshot corruption when multiple snapshots appear inside with_settings! macro. #858
with_settings! macro. #858curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.46.1/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.46.1/cargo-insta-installer.ps1 | iex"| 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 |
Add INSTA_PENDING_DIR environment variable for Bazel and other hermetic build systems. When set, pending snapshots are written to a separate directory
INSTA_PENDING_DIR environment variable for Bazel and other hermetic build systems. When set, pending snapshots are written to a separate directory while keeping the source tree read-only. We are very open to feedback on this feature. #852test.runner_fallback config key. #853curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.46.0/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.46.0/cargo-insta-installer.ps1 | iex"| 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 |
Fix backward compatibility with TOML format produced by insta < 1.45.0. #849 ( @chitoku-k )
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.45.1/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.45.1/cargo-insta-installer.ps1 | iex"| 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 |
Collect warnings from tests for display after run. Ensures deprecation warnings are visible even when nextest suppresses stdout/stderr from passing te…
INSTA_DIFF_TOOL environment variable. When set, insta uses the specified tool (e.g., delta, difftastic) to display snapshot diffs instead of the built-in diff. The tool is invoked as <tool> <old_file> <new_file>. #844test.disable_nextest_doctest config option to insta.yaml, allowing users to silence the nextest doctest warning via config instead of passing --dnd every time. #842--unreferenced=reject without false positives on .snap files from other tools. #846clippy::needless_raw_strings lint by only using raw strings when content contains backslashes or quotes. #828curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.45.0/cargo-insta-installer.sh | shpowershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.45.0/cargo-insta-installer.ps1 | iex"| 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 |
Fix a regression in 1.44.2 where merge conflict detection was too aggressive, incorrectly flagging snapshot content containing ====== or similar patte
====== or similar patterns as conflicts. #832let output = assert_snapshot!(...)). #833Fix a rare backward compatibility issue where inline snapshots using an uncommon legacy format (single-line content stored in multiline raw strings) c
NEXTEST_RUN_ID environment variable. #824Add --dnd alias for --disable-nextest-doctest flag to make it easier to silence the deprecation warning. #822
--dnd alias for --disable-nextest-doctest flag to make it easier to silence the deprecation warning. #822Add --disable-nextest-doctest flag to cargo insta test to disable running doctests with nextest. Shows a deprecation warning when nextest is used with…
cargo insta review --snapshot <path> and
cargo insta reject --snapshot <path> now work without a terminal. Enhanced
pending-snapshots output with usage instructions and workspace-relative paths. #815--disable-nextest-doctest flag to cargo insta test to disable running doctests with
nextest. Shows a deprecation warning when nextest is used with doctests without this flag, to prepare cargo insta to no longer run
a separate doctest process when using nextest in the future. #803--test-runner-fallback / --no-test-runner-fallback flags to cargo insta test. #811--force-update-snapshots. They may fail in the future. (Note that we still
currently allow differing trailing newlines, though may adjust this in the
future). #563Fix panics when cargo metadata fails to execute or parse (e.g., when cargo is not in PATH or returns invalid output). Now falls back to using the mani
cargo metadata fails to execute or parse (e.g., when cargo is not in PATH or returns invalid output). Now falls back to using the manifest directory as the workspace root. #798 (@adriangb)uninlined_format_args lint warnings. #801INSTA_GLOB_FILTER. #786libc crate to 0.2.174, fixing building on musl targets, and increasing the MSRV of
insta to 1.64.0 (released Sept 2022). #784This release in identical in rust code to 1.43.0, but reruns the GitHub Actions workflows, which failed to create a release within GitHub for 1.43.0.
This release in identical in rust code to 1.43.0, but reruns the GitHub Actions workflows, which failed to create a release within GitHub for 1.43.0.
Add uppercase keyboard shortcuts for bulk operations in cargo insta review: A to accept all, R to reject all, and S to skip all remaining snapshots.
cargo insta review:
A to accept all, R to reject all, and S to skip all remaining snapshots.
#745--unreferenced=auto (or other relevant values) no longer cleans up pending
snapshots. A bug where cargo insta test --unreferenced=auto would
incorrectly pass on new pending snapshots has been fixed.cargo-nextest bin with INSTA_CARGO_NEXTEST_BIN. #721 (Louis Fruleux)INSTA_WORKSPACE_ROOT at compile time. This is useful for reproducible binaries
so they don't contain references to CARGO_MANIFEST_DIR. #726 (Pascal Bach)linked-hash-map and pin-project dependencies. #742, #741, #738cargo insta review fails with a helpful error message when run in a non-TTY environment.Hide unseen option in CLI, as it's pending deprecation. #732
unseen option in CLI, as it's pending deprecation. #732\t and \x1b (ANSI color escape) from causing snapshots to be escaped. #715allow_duplicates! { .. }. #712Add pending deprecation warning for --accept-unseen. We've left an issue open at eliciting feedback on whether anyone uses this for a few months. A wa…
--accept-unseen. We've left an issue
open at https://github.com/mitsuhiko/insta/issues/659 eliciting feedback on
whether anyone uses this for a few months. A warning will now be printed when
--accept-unseen is used, and we'll eventually remove the feature unless we
get some feedback that it's useful. #668Text snapshots no longer contain snapshot_type: text in their metadata. For context, we originally added this in the prior release (1.41.0) to support
snapshot_type: text in their metadata. For
context, we originally added this in the prior release (1.41.0) to support
binary snapshots, but some folks disliked the diff noise on any snapshot
changes, and the maintainers' weighted votes favored reverting. I apologize
that this will cause some additional churn for those who used cargo insta test --force-update-snapshots to update their snapshots to the 1.41 format;
running this again with 1.42 will remove those metadata entries. To confirm:
this doesn't affect whether snapshot tests pass or fail — the worst impact is
some additional diffs in metadata. #690cargo-insta before running tests. Instead, running a test will overwrite or
remove its own pending snapshot. To remove all pending snapshots, use cargo insta reject or run tests with --unreferenced=delete. #651insta::internals::SettingsBindDropGuard (returned from
Settings::bind_to_scope) no longer implements Send. This was incorrect and
any tests relying on this behavior where not working properly. Fixes #694 in
#695 by @jalil-salameRe-release of 1.41.1 to generate release artifacts correctly.
Experimental support for binary snapshots. #610 (Florian Plattner)
Experimental support for binary snapshots. #610 (Florian Plattner)
--force-update-snapshots now causes cargo-insta to write every snapshot, regardless of whether
snapshots fully match, and now implies --accept. This
allows for --force-update-snapshots to update inline snapshots'
delimiters and indentation.
For the previous behavior of --force-update-snapshots, which limited writes to
snapshots which didn't fully match, use --require-full-match.
The main difference between --require-full-match and the existing behavior of --force-update-snapshots
is a non-zero exit code on any snapshots which don't fully match.
Like the previous behavior of --force-update-snapshots, --require-full-match
doesn't track inline snapshots' delimiters or
indentation, so can't update if those don't match. #644
Inline snapshots only use # characters as delimiters when required. #603
Warnings for undiscovered snapshots are more robust, and include files with custom snapshot extensions. #637
Insta runs correctly on packages which reference rust files in a parent path. #626
Warnings are printed when any snapshot uses a legacy format. #599
cargo insta --version now prints a version. #665
insta now internally uses INSTA_UPDATE=force rather than
INSTA_FORCE_UPDATE=1. (This doesn't affect users of cargo-insta, which
handles this internally.) #482
cargo-insta's integration tests continue to grow over the past couple of versions,
and now offer coverage of most of cargo-insta's interface.
Deprecate --no-force-pass in cargo-insta. The --check option covers the same functionality and has a clearer name. #513
cargo-insta no longer panics when running cargo insta test --accept --workspace
on a workspace with a default crate. #532
MSRV for insta has been raised to 1.60, and for cargo-insta to 1.64.
Added support for compact debug snapshots (assert_compact_debug_snapshot). #514
Deprecate --no-force-pass in cargo-insta. The --check option covers the
same functionality and has a clearer name. #513
Inline snapshots now use the required number of #s to escape the snapshot
value, rather than always using ###. This allows snapshotting values which
themselves contain ###. If there are no existing # characters in the
snapshot value, a single # will be used. #540
Inline snapshots can now be updated with --force-update-snapshots. #569
cargo insta test accepts multiple --exclude flags. #520
test runner in insta's yaml config works. #544
Print a warning when encountering old snapshot formats. #503
Group the options in cargo insta --help, upgrade to clap from structopt. #518
No longer suggest running cargo insta message when running cargo insta test --check. #515
Print a clearer error message when accepting a snapshot that was removed. #516
Mark require-full-match as experimental, given some corner-cases are currently difficult to manage. #497
Add a new integration test approach for cargo-insta and a set of integration tests. #537
Enable Filters to be created from IntoIterator types, rather than just Vecs. #570
Implemented total sort order for an internal Key type correctly. This prevents potential
crashes introduced by the new sort algorithm in Rust 1.81. #586
Fixed a bug in require_full_match. #485
Fixed a bug in require_full_match. #485
Fixed a bug that caused snapshot and module names to sometimes be inaccurate. #483
Insta will no longer error when attempting to remove snapshots that were already removed. #484
Added support for trailing commas in inline snapshots. #472
Don't pass --color in all cases to libtest any more to work around limitations
with custom test harnesses. #491
Filters is now constructible from IntoIterator. #400
Filters is now constructible from IntoIterator. #400
Change std macro calls to be fully qualified. This fixes issues where
the prelude was not used or the macros were overridden. #469
All macros for file snapshots should now handle trailing commas (but not yet inline snapshots)
All macros for file snapshots should now handle trailing commas (but not yet inline snapshots)
Vendored old yaml-rust dependency to avoid rustsec warnings. #465
Fix an ownership issue introduced in 1.36 with snapshot assertions. #453
Deprecate INSTA_FORCE_UPDATE_SNAPSHOTS env-var for INSTA_FORCE_UPDATE. The latter was documented, the former was implemented. #449
Deprecate INSTA_FORCE_UPDATE_SNAPSHOTS env-var for INSTA_FORCE_UPDATE.
The latter was documented, the former was implemented. #449
Add require_full_match option. #448
Deprecate assert_display_snapshot!. #385
Fixed a bug with diffs showing bogus newlines.
Fixed a crash when a file named .config was in the root.
.config was in the root.match .. { ... } syntax to redactions for better
rustfmt support. (#428)--package parameter can be supplied multiple times now. (#427)cargo insta test now accepts the --test parameter multiple times. (#437)Snapshots are now sorted in the UI on review.
cargo-insta into a workspace. (#410)--manifest-path with regards to virtual workspaces. (#409)Added --all-targets parameter support to cargo insta test.
--all-targets parameter support to cargo insta test. (#408)Added --profile parameter support to cargo insta test.
--profile parameter support to cargo insta test.Fixed a bug that caused cargo insta test not to report test failures.
cargo insta test not to report test failures.needless_raw_string_hashes clippy lint on inline snapshots. (#390)Resolved a bug on Windows that caused input_file not to be written into the snapshots.
input_file not to be written into the
snapshots. (#386)--accept even if a test outside
insta fails. (#358)#[must_use].--color=... to libtest to propagate color choices in more situations. (#375)Fixed a rendering bug with snapshot display (lines were not rendered to the terminal width).
--exclude option to cargo insta test. (#360)color option from a CARGO_TERM_COLOR environment variable (#361)Added allow_duplicates! to enable multiple assertions for a single snapshot.
allow_duplicates! to enable multiple assertions for a
single snapshot. (#346)rustfmt use unix newlines.glob! to set a different base
path. (#347)rounded_redaction to truncate floating point values. (#350)Make canonicalization in glob! optional to better support WASI.
glob! optional to better support WASI.Fix non working --include-hidden flag
--include-hidden flag (#331)review.include_ignored (#330)Added an insta tool config (.config/insta.yaml) to change the behavior of insta and cargo-insta.
.config/insta.yaml) to change the
behavior of insta and cargo-insta. (#322)--no-ignore to --include-ignored.--include-hidden to instruct insta to also walk into
hidden paths.--unreferenced option to cargo-insta test which allows
fine tuning of what should happen with unreferenced files. It's now
possible to ignore (default), warn, reject or delete unreferenced
snapshots. (#328)Add a hint if snapshots might be skipped.
Added support for rendering some invisibles in diffs. This now also should make sure that ANSI sequences in strings are no longer screwing up the term
--target option to cargo insta test. (#309)foo/*/*.txt without
creating conflicts. (#310)Added missing parameters to cargo insta test.
cargo insta test. (#305)Fix incorrect handling of extra args to cargo insta test.
cargo insta test.Fixed an issue that broke support for older rust versions.
cargo insta show command to render a snapshot.cargo insta now supports nextest as test runner.
cargo insta now supports nextest as test runner. (#285)glob! macro now defers failures by default. (#284)Added support for numeric keys in JSON which regressed in 0.18.0.
assert_json_snapshot! and assert_yaml_snapshot! now require the json and yaml feature respectively.
backtrace feature.serialization feature.assert_json_snapshot! and assert_yaml_snapshot! now require
the json and yaml feature respectively.INSTA_GLOB_FILTER to skip over tests expanded
from a glob. (#274)Avoid the use of #[allow(unused)] in the macro.
#[allow(unused)] in the macro. (#271)Fixed a regression in the JSON serialization format with newtypes and tuple variants.
Breaking Changes / Upgrading: If you are upgrading to serde 1.18.0 you will receive deprecating warnings if you are using the assert_yaml_snapshot! an…
Settings::bind now can return a result.bind_to_scope.serde dependency is now optional. While still enabled by default
users need to opt into yaml and json features explicitly to regain
support for it. To avoid the default serde dependency the default
features just need to be disabled. (#255)serialization features.backtrace feature.Settings::bind_to_thread.Breaking Changes / Upgrading: If you are upgrading to serde 1.18.0 you will
receive deprecating warnings if you are using the assert_yaml_snapshot! and
assert_json_snapshot! macros. These macros will continue to function in the
future but they will require explicit opting into the yaml and json features.
To silence the warning add them to your insta dependency. Additionally the
backtrace feature was deprecated. It is no longer needed so just remove it.
Nothing published for this version
Remove an accidentally debug print output.
Resolved an issue where inline snapshot tests in doctests refused to work.
Added support for Settings::bind_to_scope and deprecated Settings::bind_to_thread.
cargo-insta where sometimes accepting inline snapshots
would crash with an out of bounds panic.filters feature. (#245)with_settings! macro now inherits the former settings rather than resetting. (#249)Settings::bind_to_scope and deprecated
Settings::bind_to_thread. (#250)minimal-versions builds.Added --no-quiet/-Q flag to cargo insta test to suppress the quiet flag. This works around limitations with custom test harnesses such as cucumber.
--no-quiet/-Q flag to cargo insta test to suppress the
quiet flag. This works around limitations with custom test harnesses
such as cucumber.with_settings!. It's now a perfect match to
the settings object's setter methods.description and info to snapshots. (#239)omit_expression setting. (#239)Bump minimum version of Rust to 1.56.1. This was done because the used serde-yaml dependency no longer supports older versions of Rust.
Use inline block format also for strings of form "foo\n".
"foo\n". (#225)Fixed a bug that caused insta to panic if inline snapshot assertions moved since the time of the snapshot creation.
cargo insta test now returns non zero status code when snapshots
are left for review. (#222)cargo insta test. (#223)Your coding agent can read these notes before it upgrades. Set up the MCP server →