An open API service providing repository metadata for many open source software ecosystems.

Package Usage: go: github.com/bradleyjkemp/cupaloy/v2

Package cupaloy provides a simple api for snapshot testing in golang: test that your changes don't unexpectedly alter the results of your code. cupaloy takes a snapshot of a given value and compares it to a snapshot committed alongside your tests. If the values don't match then you'll be forced to update the snapshot file before the test passes. Snapshot files are handled automagically: just use the cupaloy.Snapshot(value) function in your tests and cupaloy will automatically find the relevant snapshot file and compare it with the given value. Installation Usage To update the snapshots simply set the UPDATE_SNAPSHOTS environment variable and run your tests e.g. Your snapshot files will now have been updated to reflect the current output of your code.
9 versions
Latest release: almost 3 years ago
214 dependent packages

View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/bradleyjkemp/cupaloy/v2

Dependent Repos 0