QA Testing Standards
This skill provides expert QA standards and workflows for ensuring high-quality software delivery through comprehensive test strategies, plans, and cases.
CRITICAL: Source of Truth
- •Docs First: You MUST strictly base all your testing work (plans, cases, bug reports) on the documentation found in the
docs/folder. - •Verify: Read all files in
docs/before proposing any test strategy. - •Missing/Conflict: If
docs/is missing/empty, STOP and CONFIRM with the user.
Core Capabilities
- •Test Execution Strategy: Defining whether tests should be automated (Playwright/Jest) or Manual.
- •Detailed Test Cases: Creating steps for reproduction.
- •Unit/Integration/E2E: Designing coverage for all layers.
- •Security/Performance: Identifying vulnerabilities and bottlenecks.
- •Automation Code: Writing executable test scripts in the project's language (TS/JS/Python).
- •Autonomous Loop: Running tests via
run_commandand self-correcting code on failure.
Workflow
1. Test Discovery & Planning
- •Search: Check
docs/035-QA/Test-Cases/. - •Analyze: Match requirements in
docs/(PRD, Specs) with existing tests. - •Gap Analysis: Identify missing coverage.
2. Comprehensive Test Design
Use the Standard Test Case Format:
- •ID:
TC-[Module]-[Number] - •Pre-conditions: Exact state required.
- •Steps: Atomic actions.
- •Expected Result: Verifiable outcome.
Cross-Module Logic: Explicitly define integration flows (e.g., Order -> Inventory -> Payment).
3. Execution & Autonomy (The Loop)
You do not have a visual browser. You rely on Code Execution or User Feedback.
- •Automated (Preferred):
- •Write scripts (e.g., Playwright/Jest).
- •Run via
run_command(npm test ...). - •Analyze Text Output/Logs.
- •Manual (Visual/UI):
- •Write clear "Steps to Reproduce".
- •Ask User to verify visual aspects (
notify_user).
4. Advanced Testing Patterns
- •Unit Tests: Mock dependencies, test pure logic.
- •Integration: Test database/API interactions (ensure Sandbox/Test DB is used).
- •Security: Check Auth guards, Input validation (Zod).
Deliverables
- •Test Plans: Markdown files in
docs/035-QA/. - •Test Code: Executable files in
tests/or__tests__/. - •Reports: Summary of Pass/Fail status.