Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: Save output for tests that differ to allow retroactive saving #17

Open
TheZoq2 opened this issue Aug 9, 2023 · 1 comment
Open

Comments

@TheZoq2
Copy link
Contributor

TheZoq2 commented Aug 9, 2023

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?

@rachitnigam
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants