approval-tests
CommunityStreamline cross-language approval testing.
Authorlexler
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Approval testing provides a robust alternative to many small assertions by capturing a known-good output and comparing future runs against it, reducing flaky tests and maintenance overhead.
Core Features & Use Cases
- Cross-language verification: supports Python, Java, and JavaScript/TypeScript environments to verify complex outputs.
- Snapshot/Golden-master style testing: validates large outputs with a single approval, including combinations and logs.
- On-demand references and patterns: leverages optional scripts, references, and assets to organize testing patterns and reuse test data.
Quick Start
Install the language package for approvals (e.g., pip install approvaltests, npm install approvals), write a test that calls verify or verifyAsJson, run the tests to generate .received/.approved files, review the received output, and rename it to approved to finalize the baseline.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: approval-tests Download link: https://github.com/lexler/skill-factory/archive/main.zip#approval-tests Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.