Skip to content

Tags: bradleyjkemp/cupaloy

Tags

v2.8.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add option to specify custom snapshot differ (#64)

* Add option to specify custom snapshot differ

* Update updateShapshot to use the differ

* Update config.go

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

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

v2.7.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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]>

v2.6.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add an option to disable usage of stringer methods. (#66)

This is especially annoying for snapshotting custom errors that contain
some payload. The payload would arbitrary be dismissed which is
confusing.

fixes #45

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

v2.5.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Use error structs instead of fmt.Errorf (#55)

* Refactor errors

* Fix go vet

v2.4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Upgrade to go modules (#54)

* Use https://github.com/marwan-at-work/mod to upgrade

* Remove go dep

* Enable modules in CI

* Make GO111MODULE a global env variable

* Fix shadowed env variable

* Switch to golangci-lint

* Fix GO111MODULE value

v2.3.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Allow setting custom file extension for snapshots (#47)

v2.2.0

Add support for one-shot configuration options

v2.1.0

Make SnapshotT() a no-op for (already) failed tests (#33)

* Make SnapshotT() a no-op for failed tests (#31)

* Reduce indentation

* Fix inverted if statement

v2.0.0

Implemented subtly different (though in theory backwards compatible) …

…snapshot format allowing raw output for certain types

v1.3.0

Allow custom ShouldUpdate() functions.

This will allow things like using command-line flags instead of environment variables to control updating.