You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running insta, I get duplicated snapshot reviews, as well as a crash at the end of the snapshot reviewing. In the original (non-minimal) case, I wasn't able to review some of my tests.
I should have reviewed two snapshots, but only was able to review one. The error was the dreaded "No such file or directory (os error 2)".
Reproduction steps
Create a new directory (not using cargo new --lib)
Create a Cargo.toml
Put this in your Cargo.toml:
[package]
name = "testing2"version = "0.1.0"
[[test]]
name = "integration"path = "tests/tests.rs"
[dev-dependencies]
insta = { workspace = true }
[workspace]
members = ["testing"]
[workspace.dependencies]
insta = "1.31"
What happened?
When running insta, I get duplicated snapshot reviews, as well as a crash at the end of the snapshot reviewing. In the original (non-minimal) case, I wasn't able to review some of my tests.
I should have reviewed two snapshots, but only was able to review one. The error was the dreaded "No such file or directory (os error 2)".
Reproduction steps
cargo new --lib
)Cargo.toml
Cargo.toml
:cargo new testing --lib
in the project roottesting/src/lib.rs
tests/
directory in the project roottests/tests.rs
tests/tests.rs
cargo insta test --review --all
Insta Version
1.31.0
rustc Version
1.71.0
What did you expect?
I expected to review two tests, and have no crash.
The text was updated successfully, but these errors were encountered: