Skip to content

Releases: bradleyjkemp/cupaloy

v2.8.0

14 Sep 08:14
bae0788
Compare
Choose a tag to compare

What's Changed

  • Add option to specify custom snapshot differ by @smitt04 in #64

New Contributors

Full Changelog: v2.7.0...v2.8.0

Add SnapshotWithName

12 Nov 11:53
28a118f
Compare
Choose a tag to compare
Add SnapshotWithName (#72)

* Add SnapshotWithName

SnapshotWithName is similar to SnapshotMulti without appending the function name.
It is useful when you need full control of the snapshot filename.

* Fix typo in test description

Co-authored-by: Aaran McGuire <[email protected]>

* Update examples/advanced_test.go

Co-authored-by: Aaran McGuire <[email protected]>
Co-authored-by: Bradley Kemp <[email protected]>

Include Diff in Snapshot update/creation

24 Mar 16:10
2f27407
Compare
Choose a tag to compare

Refactor and improve error handling to include a diff in the error return when snapshots are updated/created.

Upgrade to Go modules

19 Jan 17:12
4ebc4e8
Compare
Choose a tag to compare

Initial go.mod release

Add additional configuration options

21 Oct 09:01
29f58f1
Compare
Choose a tag to compare

Add new options to control:

  • Snapshot file extension
  • Whether tests fail immediately on snapshot mismatch
  • Whether tests should fail on update/create of snapshots