{"id":53017,"library":"bradleyjkemp-cupaloy-v2","title":"Cupaloy Snapshot Testing","description":"Package cupaloy provides a simple API for snapshot testing in Go: test that your changes don't unexpectedly alter the results of your code.","status":"active","version":"2.8.0","language":"go","source_language":null,"source_url":"https://github.com/bradleyjkemp/cupaloy","tags":["testing","snapshot","assertion","cupaloy"],"install":[{"cmd":"go get github.com/bradleyjkemp/cupaloy/v2","lang":"bash","label":"Install github.com/bradleyjkemp/cupaloy/v2"}],"dependencies":[],"imports":[{"symbol":"cupaloy","correct":"github.com/bradleyjkemp/cupaloy/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"testing\"\n\t\"github.com/bradleyjkemp/cupaloy/v2\"\n)\n\nfunc TestSomething(t *testing.T) {\n\tresult := \"hello world\"\n\tcupaloy.SnapshotT(t, result)\n}","lang":"go","description":"Use snapshot testing to compare a string against a stored snapshot."},"warnings":[],"env_vars":null,"search_vec":"'alter':22 'api':9 'assert':30 'chang':18 'code':27 'cupaloy':1,5,31 'go':14 'packag':4 'provid':6 'result':24 'simpl':8 'snapshot':2,11,29 'test':3,12,15,28 'unexpect':21","created_at":"2026-06-15T07:23:42.445189+00:00","updated_at":"2026-06-15T07:23:42.445189+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/bradleyjkemp/cupaloy","github":"https://github.com/bradleyjkemp/cupaloy","docs":"https://pkg.go.dev/github.com/bradleyjkemp/cupaloy/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}