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
آخر نشاط في المصدر
٢٩ يونيو ٢٠٢٦ في ٢٢:٢٥
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٧٥٧
التفرعات
١٢٤

خيارات التثبيت

يُحدَّد 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