Skip to content

approvals/ApprovalTests.CommonScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Approval Tests Common Scripts

Build and Test

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.

snippet source | anchor

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.

snippet source | anchor

About

ApprovalTests.CommonScripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 15