
Snapshot-based testing with zero setup: inline or on-disk snapshots, multi-facet captures, memoized caching, automatic disk snapshot garbage collection, and plain-string snapshot formats.
Moved: this library now lives at
diffplug/selfie-lib, with docs at lib.selfie.dev. Maven and PyPI coordinates and the API are unchanged, so you don't need to change anything. Read the announcement.
expect_selfie for testing or cache_selfie for memoizing expensive API calls.Python and JVM ports are both production-ready.
PRs welcome! Horror stories and glory stories too, share your experience! See CONTRIBUTING.md.
Heavily inspired by origin-energy's java-snapshot-testing, which in turn is heavily inspired by Facebook's jest-snapshot.
Moved: this library now lives at
diffplug/selfie-lib, with docs at lib.selfie.dev. Maven and PyPI coordinates and the API are unchanged, so you don't need to change anything. Read the announcement.
expect_selfie for testing or cache_selfie for memoizing expensive API calls.Python and JVM ports are both production-ready.
PRs welcome! Horror stories and glory stories too, share your experience! See CONTRIBUTING.md.
Heavily inspired by origin-energy's java-snapshot-testing, which in turn is heavily inspired by Facebook's jest-snapshot.