Ecosyste.ms: Packages

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

Top 2.1% on proxy.golang.org
Top 0.4% dependent packages on proxy.golang.org
Top 0.5% dependent repos on proxy.golang.org
Top 4.4% forks on proxy.golang.org
Top 2.1% docker downloads on proxy.golang.org

proxy.golang.org : github.com/bradleyjkemp/cupaloy

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
Keywords: go, golang, golden-master, snapshot, snapshot-testing, testing
License: MIT
Latest release: over 5 years ago
First release: over 6 years ago
Namespace: github.com/bradleyjkemp
Dependent packages: 168
Dependent repositories: 148
Stars: 254 on GitHub
Forks: 27 on GitHub
Docker dependents: 6
Docker downloads: 2,498
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...