Changelog

All notable changes to insta and cargo-insta are documented here.

1.39.0

1.38.0

1.37.0

1.36.1

1.36.0

1.35.1

1.35.0

1.34.0

1.33.0

1.32.0

1.31.0

1.30.0

1.29.0

1.28.0

1.27.0

1.26.0

1.25.0

1.24.1

1.24.0

1.23.0

1.22.0

1.21.2

1.21.1

1.21.0

1.20.0

1.19.1

1.19.0

1.18.2

1.18.1

1.18.0

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.

1.17.2

1.17.1

1.17.0

1.16.0

1.15.0

1.14.1

1.14.0

1.13.0

1.12.0

Upgrade Notes:

Insta used to detect the current test name by using the current thread name. This appeared to work well but unfortunately ran into various limitations. In particular in some cases the thread name was truncated, missing or did not point to the current test name. To better support different platforms and situations insta now uses the function name instead.

This however changes behavior. In particular if you are using a helper function to assert, a different snapshot name will now be used. You can work around this issue by using a helper macro instead or to explicitly pass a snapshot name in such situations.

1.11.0

1.10.0

1.9.0

1.8.0

1.7.2

1.7.1

1.7.0

1.6.3

1.6.2

1.6.1

1.6.0

1.5.3

1.5.2

1.5.1

1.5.0

1.4.0

1.3.0

1.2.0

1.1.0

1.0.0

0.16.1

0.16.0

0.15.0

0.14.0

0.13.1

0.13

0.12

0.11

To upgrade to the new insta macros and snapshot formats you can use fastmod and cargo-insta together:

$ cargo install fastmod
$ cargo install cargo-insta
$ fastmod '\bassert_([a-z]+_snapshot)_matches!' 'assert_${`}!' -e rs --accept-all
$ cargo insta test --all --force-update-snapshots --accept
Found an issue? You can edit this page on GitHub.