Skip to main content

test-coverage

Run the WealthWise test suite with coverage reporting and summarize the results. Triggers when asked to "run tests with coverage", "check test coverage", "show coverage report", or "how many tests pass". Can be scoped to api, web, or types.

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

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

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

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

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

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

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
test-coverage
description
Run the WealthWise test suite with coverage reporting and summarize the results. Triggers when asked to "run tests with coverage", "check test coverage", "show coverage report", or "how many tests pass". Can be scoped to api, web, or types.
Run the WealthWise test suite with coverage and summarize the results. ## Scope | Argument | Command | |----------|---------| | (none) | `npm run test:coverage` (all packages) | | `api` | `npx turbo test:coverage --filter=@wealthwise/api` | | `web` | `npx turbo test:coverage --filter=@wealthwise/web` | | `types` or `shared-types` | `npx turbo test:coverage --filter=@wealthwise/shared-types` | Note: API tests use mongodb-memory-server with a 30-second startup. Do not reduce the timeout. ## Steps 1. Run the appropriate coverage command 2. Parse the output and report: ``` Package Tests Pass Fail Stmts Branch Funcs Lines @wealthwise/api 138 138 0 XX% XX% XX% XX% @wealthwise/web 41 41 0 XX% XX% XX% XX% @wealthwise/shared-types 151 151 0 XX% XX% XX% XX% ───────────────────────────────────────────────────────────────────────────── Total 330 330 0 ``` 3. Flag any file with **< 80% branch coverage** as needing attention. 4. If tests fail, show the full error for each failing test (file path, test name, error message). 5. Do NOT attempt to fix failing tests unless explicitly asked. ## Baseline The expected passing count is **330 tests** (138 + 41 + 151). If the total differs, note it.
عرض على GitHub