8 Best Approval Testing Tools in 2026: Reviewed Snapshots Across Languages
Compare 8 approval testing tools for human-reviewed golden files, from ApprovalTests and Jest to pytest, Verify, Paparazzi and RSpec.
On this page
Key takeaways
- Approval testing flips the usual order: the tool writes the output, a person reviews it, and that reviewed file becomes the expected result.
- Some tools are dedicated approval frameworks, while others are general test runners with snapshot support built in.
- Language and platform decide most of the shortlist, so start with your stack before comparing features.
- Review workflow matters as much as diffing, since every tool here needs a human to accept or reject a change.
- Keep golden files small and focused, or review fatigue sets in fast.
What approval testing tools are for
Approval testing tools capture the output of a function, a rendered component, or a serialized object and write it to a file. A developer reviews that file, approves it, and the tool compares future runs against it. The reviewed file is the assertion, so you spend less time hand-writing expected values and more time reading diffs.
These tools fit teams working with complex output: formatted reports, generated code, HTML, JSON payloads, or UI trees. They are less useful when a simple equality check already explains the intent. If a test needs a precise, readable expectation that a reader can understand without opening a separate file, a plain assertion is often the better choice.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| ApprovalTests | Multi-language golden file workflows | Not included | Not included |
| Jest | Snapshot tests in JavaScript projects | Not included | Not included |
| Vitest | Snapshot tests in Vite-based projects | Not included | Not included |
| pytest | Python teams wanting a flexible base | Not included | Not included |
| Verify | .NET projects with rich diff output | Not included | Not included |
| SnapshotTesting | Swift and Apple platform snapshots | Not included | Not included |
| Paparazzi | Android UI snapshots without a device | Not included | Not included |
| RSpec | Ruby projects with readable specs | Not included | Not included |
The best approval testing tools
1. ApprovalTests
- Official site: https://approvaltests.com
- Best for: Multi-language golden file workflows
- Starting price: Not included
- Free plan: Not included
- Pros: Available across many languages; clear approved and received file convention
- Cons: Setup differs per language; reporters need configuration
ApprovalTests is a family of libraries that bring the approval workflow to many languages, including Java, C#, Python, Ruby, JavaScript, and PHP. The core idea is consistent: a test produces a received file, you compare it with an approved file, and a diff tool shows what changed. Reporters handle how that comparison is presented, so you can route it to an editor or a visual diff.
It suits teams that want one approval concept across several codebases rather than a different snapshot mechanism per language. The tradeoff is that each language binding has its own setup, and reporter configuration takes some reading.
2. Jest
- Official site: https://jestjs.io
- Best for: Snapshot tests in JavaScript projects
- Starting price: Not included
- Free plan: Not included
- Pros: Snapshot support built into the runner; inline snapshots keep expectations in the test file
- Cons: Snapshots can grow large; updates need deliberate review
Jest is a JavaScript test runner with snapshot testing built in. Calling the snapshot matcher records a serialized value to a snapshot file on the first run, and later runs compare against it. Inline snapshots write the value directly into the test source, which keeps the expectation next to the code that produced it. The runner also handles mocking, coverage, and parallel execution.
It fits front-end and Node projects that already use Jest as their runner, since snapshots need no extra dependency. Compared with dedicated approval libraries, the workflow is narrower: you get snapshot files and an update flag, not a configurable diff reporter.
3. Vitest
- Official site: https://vitest.dev
- Best for: Snapshot tests in Vite-based projects
- Starting price: Not included
- Free plan: Not included
- Pros: Fast feedback in Vite projects; snapshot and inline snapshot support
- Cons: Tied to the Vite toolchain; large snapshots need pruning
Vitest is a test runner built for projects that use Vite. It offers snapshot testing with both file snapshots and inline snapshots, so you can record a value once and compare against it later. It shares configuration with the Vite setup, which means aliases and transforms usually work in tests without extra wiring. Watch mode gives quick feedback while you iterate.
Choose it when your project already builds with Vite and you want snapshots without adding a separate runner. It differs from Jest mainly in toolchain fit rather than approval concepts, and the snapshot workflow is similar.
4. pytest
- Official site: https://docs.pytest.org/en/stable/
- Best for: Python teams wanting a flexible base
- Starting price: Not included
- Free plan: Not included
- Pros: Fixtures and plugins support custom approval flows; clear assertion output
- Cons: No built-in approval workflow; snapshot behavior comes from plugins
pytest is a Python testing framework built around plain functions, fixtures, and a rich plugin system. It does not ship an approval mechanism of its own, but its fixture model makes it a common base for snapshot and golden file patterns, often through plugins or small helpers you write yourself. Assertion rewriting produces readable failure output.
It fits Python teams that want control over how approved files are stored, named, and compared. Unlike a dedicated approval library, you assemble the workflow: where files live, how they are updated, and how diffs are shown.
5. Verify
- Official site: https://github.com/VerifyTests/Verify
- Best for: .NET projects with rich diff output
- Starting price: Not included
- Free plan: Not included
- Pros: Broad support for many output types; diff tools integrated into the workflow
- Cons: .NET only; extension packages add setup work
Verify is an approval testing library for .NET. It serializes the value under test, writes a received file, and compares it with an approved file, then opens a diff tool so you can inspect the change. It supports many output shapes, including objects, strings, and files, with extension packages covering additional formats and frameworks.
It suits .NET teams that want a mature approval workflow without building one. Compared with general runners, the focus is entirely on snapshot comparison and review, which makes the loop tighter.
6. SnapshotTesting
- Official site: https://github.com/pointfreeco/swift-snapshot-testing
- Best for: Swift and Apple platform snapshots
- Starting price: Not included
- Free plan: Not included
- Pros: Works with several snapshot strategies; integrates with common Swift test frameworks
- Cons: Apple platform focus; image snapshots need stable environments
SnapshotTesting is a Swift library for snapshot testing. It records a value, such as a rendered view, a data structure, or an encoded output, and compares later runs against the recorded reference. It supports multiple snapshot strategies, so the same approach covers text, images, and other representations, and it plugs into standard Swift testing setups.
It fits iOS and macOS teams that want reviewed reference files for views and model output. The main difference from general runners is platform focus: it is built around Swift and Apple tooling. Image snapshots are sensitive to rendering environment, so consistent machines and simulators matter for reliable comparisons.
7. Paparazzi
- Official site: https://cashapp.github.io/paparazzi/
- Best for: Android UI snapshots without a device
- Starting price: Not included
- Free plan: Not included
- Pros: Renders layouts on the JVM; no emulator needed for snapshots
- Cons: Android UI scope only; rendering differences need attention
Paparazzi is a library for rendering Android layouts and taking snapshots on the JVM, without an emulator or device. You write tests that render a composable or view, and the library records an image you can review and approve. That makes UI changes visible in code review as image diffs rather than as manual checks on a device.
It suits Android teams that want fast, repeatable UI snapshots in ordinary test runs. It is narrower than a general approval tool: the focus is Android rendering, so non-UI approval needs go elsewhere.
8. RSpec
- Official site: https://rspec.info
- Best for: Ruby projects with readable specs
- Starting price: Not included
- Free plan: Not included
- Pros: Expressive spec syntax; snapshot support through companion libraries
- Cons: Approval behavior is not core; extra setup for golden files
RSpec is a Ruby testing framework centered on readable, behavior-focused specs. Approval and snapshot testing are not part of the core library, but the ecosystem provides companion gems that record output and compare it against approved files. The framework's structure makes it straightforward to wrap a custom approval helper around existing specs.
It fits Ruby teams that already write specs and want reviewed golden files without changing their test style. The difference from dedicated approval tools is that you add the workflow rather than adopting it wholesale.
How to choose
- Start with your language and platform. A dedicated approval library for your stack usually beats a general runner plus custom helpers.
- Check the review loop. Confirm how the tool shows diffs and how you approve or update files, because that is where most of your time goes.
- Match your existing runner. Snapshot support inside Jest, Vitest, pytest, or RSpec avoids a second test framework.
- Consider team size. Shared conventions for file naming and storage matter more as more people review the same golden files.
- Think about lock-in. Approval files are portable, but the update commands and diff tooling are tied to the library you pick.
- Keep support in mind. Prefer tools with documentation that explains the approval workflow, not just the matcher syntax.
How we chose
These tools were selected from official product pages and documentation, based on fit for reviewed snapshot workflows, active maintenance signals on those pages, and clear use cases across languages and platforms. The list mixes dedicated approval libraries with general test runners that support snapshots, so teams can match the tool to their existing stack. No documentation review was performed, and the descriptions stick to capabilities the vendors document in general terms.
FAQ
What is the difference between approval testing and snapshot testing?
The two overlap heavily. Approval testing emphasizes a human reviewing a received file before it becomes the approved expectation, while snapshot testing usually refers to the same idea built into a test runner. Many teams use the terms interchangeably.
Do I need a dedicated approval library?
Not always. If your test runner already supports snapshots and your output is simple, the built-in option is enough. A dedicated library helps when you need configurable diff reporting or consistent behavior across several languages.
How do I stop golden files from becoming unreadable?
Keep each approved file focused on one behavior, split large outputs, and review changes as part of normal code review. Delete snapshots that no longer describe intended behavior instead of updating them blindly.
Can approval tests run in continuous integration?
Yes. Most workflows compare against approved files during the test run and fail when output differs. The review step happens locally or in review tooling, and updated files are committed alongside the code change.