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

Add an option to rm the snapshots with golden_run #168

Open
cedelavergne-ledger opened this issue Feb 16, 2024 · 1 comment
Open

Add an option to rm the snapshots with golden_run #168

cedelavergne-ledger opened this issue Feb 16, 2024 · 1 comment

Comments

@cedelavergne-ledger
Copy link
Contributor

When using the option golden_run, the snapshots are re-generated, but if we've modified the tests, and the number of png is lower than before, the old useless png are not deleted.
For example, taking a test that produces 10 screens, from 00000.png to 00009.png; after a modification, there are now only 8 files: 00008.png and 00009.png should then be deleted.

It could be usefull to have an option allowing to erase the snapshots directory before running the test, to ensure no more useless files are present.

@xchapron-ledger
Copy link
Contributor

At some point this wasn't possible because we were chaining multiple navigate_and_compare call with the same dir but with hardcoded start_idx.
I'm not sure it's still the case?

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