Approval Tests Common Scripts
December 18, 2025 ยท View on GitHub
Contents
Approve All
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.
Example Output
Mismatched file found.
Updating:
- a.approved.txt
Approved 1 file.
Remove Abandoned Files
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.
Example output
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.
See Also
- Documentaton - Documentation
- Agents - AI agent instructions and script documentation
- Map - Codebase structure overview