Skip to main content

contract-test

Test the boundary between two systems by the contract, not the implementation. Use for APIs, integrations, and shared interfaces.

소스 정보

저장소
Archive228/loopkit
최근 소스 활동
2026년 6월 29일 22:25
감지된 SKILL.md 언어
영어
스타
757
포크
124

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
contract-test
description
Test the boundary between two systems by the contract, not the implementation. Use for APIs, integrations, and shared interfaces.
when_to_use
an API endpoint, a service integration, a webhook, a shared schema
# Contract Test Test what the two sides AGREED on, so either can change internals without breaking the other. - Assert the **shape**: required fields, types, status codes, error format — not internal logic. - Cover the contract's edges: missing optional fields, the documented error responses, pagination bounds, versioning. - For consumers: test against the real contract (recorded/real responses), not a mock you wrote to match your assumptions — that mock drifts and lies. - One source of truth for the schema; both sides validate against it. A green unit test with a wrong mock is worse than no test. Pin the contract.
GitHub에서 보기