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 a runt test which diffs from the previous version, it is a bit annoying having to re-run the whole test to save the result with the -s flag
https://crates.io/crates/insta solves this by creating .new files for tests that differ, and has a separate command insta accept to replace the old files with the new ones without re-running the test suite, perhaps that could be copied here?
The text was updated successfully, but these errors were encountered:
That's interesting! One possible concern is that it would pollute the working directories for the tests and the user would have to add *.new to the .gitignore to avoid the problem. Another option is adding these files to a .runt folder in the base repo which could allow us support things like a quick test mode where only previously failing tests would be run.
When running a runt test which diffs from the previous version, it is a bit annoying having to re-run the whole test to save the result with the
-s
flaghttps://crates.io/crates/insta solves this by creating
.new
files for tests that differ, and has a separate commandinsta accept
to replace the old files with the new ones without re-running the test suite, perhaps that could be copied here?The text was updated successfully, but these errors were encountered: