3 Updating Recorded Output
When the output intentionally changes, rerun the test with RECSPECS_UPDATE set. If an expectation does not match, recspecs rewrites the expectation in the source file with the new output instead of failing the test:
RECSPECS_UPDATE=1 raco test shopping-list-test.rkt |
After reviewing the rewritten file, run the tests normally again. Updating can be restricted to a single test case by setting RECSPECS_UPDATE_TEST to the name shown for that case.