cargo-semver-checks icon indicating copy to clipboard operation
cargo-semver-checks copied to clipboard

feat: insta for snapshot testing

Open vasucp1207 opened this issue 11 months ago • 0 comments

Related to https://github.com/obi1kenobi/cargo-semver-checks/issues/634

[!WARNING]
This is just for checking how to update snapshots with insta. Not a migration from the current test system to insta snapshots.

Trying out the insta for snapshot testing and find out that moving to insta is not a big deal we just have to adjust the current testing logic. Run cargo-test and cargo-insta-accept, snapshots will created in src/snapshots with ron format. No need for manually paste the diff.

cc @obi1kenobi

vasucp1207 avatar Mar 08 '24 21:03 vasucp1207