Skip to content

Releases: mitsuhiko/insta

1.40.0

06 Sep 09:14
Compare
Choose a tag to compare

Release Notes

  • cargo-insta no longer panics when running cargo 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

Install cargo-insta 1.40.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.40.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

1.39.0

15 May 09:41
Compare
Choose a tag to compare

Release Notes

  • 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 removing 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

Install cargo-insta 1.39.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.39.0/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.39.0/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.39.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

1.38.0

28 Mar 10:36
Compare
Choose a tag to compare

Release Notes

  • 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

Install cargo-insta 1.38.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.38.0/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -c "irm https://github.com/mitsuhiko/insta/releases/download/1.38.0/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.38.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