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.

Datos de origen

Repositorio
Archive228/loopkit
Última actividad en el origen
29 de junio de 2026 a las 22:25
Idioma detectado de SKILL.md
inglés
Estrellas
757
Forks
124

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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.
Ver en GitHub