Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.7% on proxy.golang.org
Top 0.3% dependent packages on proxy.golang.org
Top 0.3% dependent repos on proxy.golang.org
Top 4.4% forks on proxy.golang.org
Top 0.4% docker downloads on proxy.golang.org

proxy.golang.org : 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.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/bradleyjkemp/cupaloy/v2
Keywords: go, golang, golden-master, snapshot, snapshot-testing, testing
License: MIT
Latest release: over 1 year ago
First release: over 1 year ago
Namespace: github.com/bradleyjkemp/cupaloy
Dependent packages: 214
Dependent repositories: 886
Stars: 254 on GitHub
Forks: 27 on GitHub
Docker dependents: 32
Docker downloads: 17,710,967
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago

    Loading...
    Readme
    Loading...