test-contract
CommunityDefine once, test all implementations.
Software Engineering#testing#test generation#contract testing#design by contract#protocol conformance#interface testing
Authorgustavscirulis
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Ensures that different implementations of a protocol or interface behave consistently, preventing regressions and facilitating safe swaps between them.
Core Features & Use Cases
- Protocol Conformance: Define a single set of tests that any conforming implementation must pass.
- Implementation Swapping: Safely replace one implementation (e.g., in-memory) with another (e.g., SQLite) knowing the contract is upheld.
- AI-Generated Code Validation: Verify that AI-generated code adheres to the specified protocol.
Quick Start
Use the test-contract skill to generate contract tests for the DataStore protocol.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: test-contract Download link: https://github.com/gustavscirulis/snapgrid/archive/main.zip#test-contract 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 223,000+ vetted skills library on demand.