Releases: approvals/go-approval-tests
v1.9.1 fix for module list error
Fixes an issue with file names in v1.9.0 that broke package verification with go list -u -m all and retracts v1.9.0
Full Changelog: v1.9.0...v1.9.1
v1.9.0 Reporter fixes, public interfaces and improved VerifyJSONBytes
Full Changelog: v1.8.0...v1.9.0
- Changed FileOptions and Scrubber to be public (#73)
- Fixed how we report files when running using
-runparameters to avoid issues with the file cleanup utility (#74) - Added support for a Cursor reporter on OSX and fixed a precedence issue in OSX reporting that prevented valid reporters from being reached
- Fixed VerifyJSONBytes to work with other valid JSON data, instead of only JSON objects (#39)
v1.8.0 Use codegen for reporters
Full Changelog: v1.7.0...v1.8.0
Moves to using the shared reporter configurations in https://github.com/approvals/DiffTools to generate reporters (using scripts/generate_diff_reporter.py) so we can have consistency in approvals across all supported languages. Add support for several new reporters in the process, see the csv file in DiffTools
v1.7.0 - VerifyOptions is public.
Full Changelog: v1.6.2...v1.7.0
v1.6.2 - Fix directory name issue
Fixes issue with module verification noted in #65
v1.6.1 - AddDateScrubber and ConsoleOutput
Added the ability to include your own custom date scrubbers and tools for testing console output as well as a convenience function for errors.
- DateScrubber.AddDateScrubber
- ConsoleOutput
- TestingUtils.utils.RequireNoError(t, err)
v1.6.0 Breaking Change - Ensure Approve Files end with a newline
v1.6.0 - This is a breaking change
Most, if not all, of your approved files will fail after upgrading to this version.
This is because approval files now expect to have a newline (\n) at the end of the file.
Upgrade Path
We suggest:
- Run all your tests and see them pass
- Upgrade
go-approval-tests - Run tests again (they will all fail)
- Run the approval python script
.approval_tests_temp/approve_all.pyFix missing directory error
Options().ForFile().WithAdditionalInformation(value)
This allows multiple approved files per test.
v1.4.0 remove_abandoned_files.py script
Full Changelog: v1.3.0...v1.4.0