insta
insta copied to clipboard
`INSTA_UPDATE=always cargo test` with an incorrect inline snapshot passes
What happened?
with a test like:
#[test]
fn test_inline() {
insta::assert_snapshot!(3 + 2, @"");
}
... running INSTA_UPDATE=always cargo test
gives:
error: cannot update inline snapshots in-place (https://github.com/mitsuhiko/insta/issues/272)
test tests::test_inline ... ok
But then returns a zero exit code
Arguably this should return a non-zero exit code, to indicate the snapshots are not correct
Reproduction steps
No response
Insta Version
1.38
rustc Version
1.77.2
What did you expect?
No response