85 releases (55 stable)

1.38.0 Mar 28, 2024
1.35.1 Feb 19, 2024
1.34.0 Oct 9, 2023
1.31.0 Jul 14, 2023
0.7.4 Mar 18, 2019

#153 in Cargo plugins

Download history 1019/week @ 2023-12-23 2279/week @ 2023-12-30 4372/week @ 2024-01-06 4312/week @ 2024-01-13 3066/week @ 2024-01-20 3605/week @ 2024-01-27 2475/week @ 2024-02-03 1955/week @ 2024-02-10 2734/week @ 2024-02-17 3661/week @ 2024-02-24 4507/week @ 2024-03-02 3259/week @ 2024-03-09 3161/week @ 2024-03-16 3800/week @ 2024-03-23 4270/week @ 2024-03-30 3554/week @ 2024-04-06

15,233 downloads per month
Used in 3 crates

Apache-2.0

420KB
11K SLoC

cargo-insta: review tool for insta, a snapshot testing library for Rust

cargo-insta provides a cargo command for insta snapshot reviews.

$ cargo install cargo-insta
$ cargo insta --help

To install an old version ensure to pass the --locked flag so that the Cargo.lock file is honored:

$ cargo install cargo-insta --version 1.15.0 --locked

Usage

cargo-insta provides a few different commands to interact with insta snapshots.

For running tests you can use the test command, for reviewing snapshots review. The reviewing process is interactive and prompts for all changes identified. If you want to skip reviewing you can use accept and reject directly.

For more information refer to the documentation.

Dependencies

~10–23MB
~315K SLoC