Skip to content

Releases: approvals/go-approval-tests

Fix missing directory error

16 May 17:39
Compare
Choose a tag to compare

Options().ForFile().WithAdditionalInformation(value)

23 Apr 17:54
Compare
Choose a tag to compare

This allows multiple approved files per test.

More info here

v1.4.0 remove_abandoned_files.py script

09 Apr 17:13
Compare
Choose a tag to compare

v1.3.0 Failed comparison log and approve_all script.

03 Apr 17:27
Compare
Choose a tag to compare
  • Add Failed Comparison
  • Download approve_all script

Full Changelog: v1.2.1...v1.3.0

v1.2.1 Temp directory includes a .gitignore

27 Mar 17:32
Compare
Choose a tag to compare

Took away the need to change your .gitignore because of the temp directory

Full Changelog: v1.2.0...v1.2.1

v1.2.0 TemplatedCustomNamer

12 Feb 18:31
Compare
Choose a tag to compare

It is now easier to create a custom namer

func TestTemplatedCustomNamer(t *testing.T) {
	custom := CreateTemplatedCustomNamerCreator("{TestSourceDirectory}/{ApprovalsSubdirectory}/{TestFileName}.{TestCaseName}.custom.{ApprovedOrReceived}.{FileExtension}")
	VerifyString(t, "Hello", Options().ForFile().WithNamer(custom))
}

Breaking Changes

  • We have removed the original ApprovalName namer, this should only affect people who are customizing the namer

Full Changelog: v1.1.1...v1.2.0

v1.1.1 Introducing core interfaces

06 Feb 18:44
Compare
Choose a tag to compare

Breaking Changes

Note: we are not doing a major version bump as this creates a lot of weirdness in how you import packages in golang

Everything in here is a refactoring for extensibility but it moves classes that if you are customizing will cause breakage

  • move logs to internal/logs
  • introduce core.ApprovalNamer interface
  • introduce core.ApprovalNamerCreator
  • introduce standalone core.Compare standalone
  • add options.ForFile().WithNamer

v1.1.0

30 Jan 19:08
Compare
Choose a tag to compare

Log Approved Files

This release will now log all the approved files that were verified in the last run under ./.approval_tests_temp/.approved_files.log

Remember to add this to your .gitignore file.

v1.0.0

30 Jan 18:32
Compare
Choose a tag to compare

Bump to go 1.16+

We plan to continue to tag releases going forward.