Adapter Contract Testing
Ensures consistency between real service adapters and their simulators through standardized contract testing patterns.
This skill provides a rigorous framework for implementing the Adapter Contract Testing pattern, specifically designed for applications following the Hexagonal (Ports and Adapters) architecture. It guides Claude in creating shared abstract test suites that run against both real API implementations and their local simulators, ensuring that fakes do not drift from reality. By enforcing a single abstract method for setup and preventing skips in subclasses, this skill ensures that your testing environment remains high-fidelity, high-speed, and reliable across both development and production-like environments.
주요 기능
01Automated validation of port specifications
02Standardized abstract contract class architecture
03Guidance on simulator-specific edge case testing
04Rules for handling pre-seeded test data
050 GitHub stars
06Drift prevention between real adapters and simulators
사용 사례
01Developing robust Hexagonal architecture applications where simulators must be kept honest
02Ensuring database adapters and memory-based mocks behave identically
03Testing external APIs like Smoobu while maintaining a reliable local simulator