Skip to main content

test-before-ship

Use this skill when implementing a new feature or fixing a bug. Write or update tests before marking the task done. Never consider code complete without verifying it works through automated tests.

معلومات المصدر

المستودع
aiming-lab/MetaClaw
آخر نشاط في المصدر
١٠ مارس ٢٠٢٦ في ١٨:٠٤
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٣٬٤٥٦
التفرعات
٤٥٠

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

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
test-before-ship
description
Use this skill when implementing a new feature or fixing a bug. Write or update tests before marking the task done. Never consider code complete without verifying it works through automated tests.
category
coding
# Test Before Ship **Test pyramid:** - Unit tests for pure functions and business logic (fast, many). - Integration tests for service interactions and DB queries (medium). - End-to-end tests for critical user journeys (slow, few). **Test quality checklist:** - Does the test actually fail when the code is broken? - Does it cover the happy path AND the most likely error cases? - Is the test name descriptive enough to diagnose a failure from the name alone? **For bug fixes:** add a regression test that reproduces the bug before fixing it. **Anti-patterns:** - Tests that only test the mock, not the real behavior. - Skipping tests because "it probably works".
عرض على GitHub