When you make a change that affects a large number of Approval Tests you can quickly approve the new results by running .approval_tests_temp/approve_all.py
.
Mismatched file found.
Updating:
- a.approved.txt
Approved 1 file.
Sometimes when using Approval Tests you might end up with some stray approved
files for tests that no longer exist.
You can quickly identify and eliminate these files by running .approval_tests_temp/remove_abandoned_files.py
.
Running this will first list all files it believes have been abandoned and then give you the option to delete these files.
Unused `.approved.` files found.
- a.stray.approved.txt (in path/to/)
- c.stray.approved.txt (in path/to2/)
Delete? [Y/n]
n
No files were deleted.