اسکیلیکس | Skilliks مهارت‌های تاییدشده برای هوش مصنوعی

Tests and coverage

آزاد تازه‌وارد تاییدشده امن

«Tests and coverage» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه، به‌جای پاسخ کلی، قابل استفاده و قابل بازبینی باشد. ۱۰ گام مشخص در متن آن آمده و برای Claude Code آماده است.

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: coverage
description: Run unit, integration and e2e test suites and report results and coverage, overall and per feature, for frontend and backend; optionally write missing tests. Use when the user runs /qa:coverage or asks "run the tests", "what is the coverage", or "write e2e for feature X".
argument-hint: "[frontend | backend | e2e | all] [feature] [write: <feature>]"
---

# Tests and coverage

Load `core:principles` first.

Scope: $ARGUMENTS (default: all suites, report only)

## Run and report
1. Find the test commands in CLAUDE.md "Project rules", package.json, pytest/vitest/playwright config.
   If a suite needs services (DB, docker, browser) that are not running, say so and ask.
2. Run each suite. Capture totals: passed / failed / skipped, duration.
3. Run coverage where configured. Report lines (and branches if available):
   - overall, frontend and backend separately
   - per feature: group files by feature folder/module; list the lowest-covered features
4. For failures: test name, error message, likely cause (test bug vs code bug), verified or suspected.

| Suite | Passed | Failed | Skipped | Coverage |

## Writing tests (only if asked with `write`)
- Read the feature and existing tests first; match the project's test style and fixtures.
- Cover behaviour users rely on: happy path, key edge cases, permissions, error states.
- No snapshot spam, no testing implementation details, no tests that pass without asserting.
- Run the new tests and show them passing; report the coverage change before/after.

Never edit production code to make a test pass without saying so and asking.

## Clean up
Delete coverage output you generated (e.g. `coverage/`, `htmlcov/`, `.coverage`, test-results)
unless the user asked to keep it or it existed before the run. Confirm `git status` matches
what it was before you started.


— ‹guest · 2026-11-23› —

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
کیفیت کد و تست
✦ Pro

REA CI and tests audit

«REA CI and tests audit» دستورالعمل دقیقی برای «نوشتن و اجرای تست خودکار» در اختیار دستیار هوش مصنوعی می‌گذارد تا نتیجه…

⚡ /rea-ci-tests-audit SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۴۷۴,۰۸۴
کیفیت کد و تست
✦ Pro

Finishing a Development Branch

این مهارت با نام «Finishing a Development Branch» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی …

⚡ /finishing-a-development-branch SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Code Review Reception

اگر روی کیفیت کد و تست کار می‌کنید، «Code Review Reception» بخشی از کار را از دوش شما برمی‌دارد: «بازنویسی و تمیزسازی ک…

⚡ /receiving-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Requesting Code Review

برای کارهای کیفیت کد و تست، «Requesting Code Review» یک راهنمای کوتاه و روشن است: مسیر «مدیریت هوشمند حافظه و کانتکست» …

⚡ /requesting-code-review SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Test-Driven Development (TDD)

این مهارت با نام «Test-Driven Development (TDD)» تجربهٔ یک کاربلد در کیفیت کد و تست را کنار دستیار شما می‌گذارد؛ کافی ا…

⚡ /test-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
کیفیت کد و تست
✦ Pro

Skill Creator

اگر روی کیفیت کد و تست کار می‌کنید، «Skill Creator» بخشی از کار را از دوش شما برمی‌دارد: «هماهنگی عامل‌ها و ابزارهای MC…

⚡ /skill-creator SKILL.md
Claude / Claude Code
۹۲/۱۰۰ ★ ۱۹۸,۷۹۴