| name | test |
| description | Run unit, integration, e2e, and UI tests. Use for test execution, coverage analysis, build verification, visual regression, and QA reports. |
| argument-hint | [context] OR ui [url] |
| metadata | {"author":"data-visualization-kit","version":"1.0.0"} |
Testing & Quality Assurance
Codex Adaptation
- Replace legacy
AskUserQuestion guidance with a direct concise question only when required.
- Replace legacy task-tool workflows with plan files plus
update_plan.
- Keep reports and generated QA notes inside the active project
docs/ tree when the task is project-scoped.
Comprehensive testing framework covering code-level testing (unit, integration, e2e), UI/visual testing via browser automation, coverage analysis, and structured QA reporting.
Default (No Arguments)
If invoked with context (test scope), proceed with testing. If invoked without arguments, ask the user directly whether they want code tests or UI tests.
| Operation | Description |
|---|
(default) | Run unit/integration/e2e tests |
ui | Run UI tests on a website |
Use a short direct question such as: "Do you want code tests or UI tests?"
Core Principle
NEVER IGNORE FAILING TESTS. Fix root causes, not symptoms. No mocks/cheats/tricks to pass builds.
When to Use
- After implementation: Validate new features or bug fixes
- Coverage checks: Ensure coverage meets project thresholds (80%+)
- UI verification: Visual regression, responsive layout, accessibility
- Build validation: Verify build process, dependencies, CI/CD compatibility
- Pre-commit/push: Final quality gate
Workflows
1. Code Testing (references/test-execution-workflow.md)
Execute test suites, analyze results, generate coverage. Supports JS/TS (Jest/Vitest/Mocha), Python (pytest), Go, Rust, Flutter. Includes working process, quality standards, and tool commands.
Load when: Running unit/integration/e2e tests, checking coverage, validating builds
2. UI Testing (references/ui-testing-workflow.md)
Browser-based visual testing via chrome-devtools skill. Screenshots, responsive checks, accessibility audits, form automation, console error collection. Includes auth injection for protected routes.
Load when: Visual regression testing, UI bugs, responsive layout checks, accessibility audits
3. Report Format (references/report-format.md)
Structured QA report template: test results overview, coverage metrics, failed tests, performance, build status, recommendations.
Load when: Generating test summary reports
Quick Reference
Code tests → test-execution-workflow.md
npm test / pytest / go test / cargo test / flutter test
Coverage: npm run test:coverage / pytest --cov
UI tests → ui-testing-workflow.md
Screenshots, responsive, a11y, forms, console errors
Auth: inject-auth.js for protected routes
Reports → report-format.md
Structured QA summary with metrics & recommendations
Working Process
- Identify testing scope from recent changes or requirements
- Run typecheck/analyze commands to catch syntax errors first
- Execute appropriate test suites
- Analyze results — focus on failures
- Generate coverage reports if applicable
- For frontend: run UI tests via
chrome-devtools skill
- Produce structured summary report
Tools Integration
- Test runners: Jest, Vitest, Mocha, pytest, go test, cargo test, flutter test
- Coverage: Istanbul/c8/nyc, pytest-cov, go cover
- Browser:
chrome-devtools skill for UI testing (screenshots, ARIA, console, network)
- Analysis:
ai-multimodal skill for screenshot analysis
- Debugging:
dv-debug skill when tests reveal bugs requiring investigation
- Thinking:
sequential-thinking skill for complex test failure analysis
Quality Standards
- All critical paths must have test coverage
- Validate happy path AND error scenarios
- Ensure test isolation — no interdependencies
- Tests must be deterministic and reproducible
- Clean up test data after execution
- Never ignore failing tests to pass the build
Report Output
IMPORTANT: Invoke the project-organization skill to organize outputs when needed.
Use naming pattern from ## Naming section injected by hooks.
Team Mode
When operating as teammate:
- On start: read the assigned scope from the plan or controller prompt
- Confirm the exact test boundary before starting
- Wait for blocked tasks (implementation) to complete before testing
- Respect file ownership — only create/edit test files assigned
- When done: report results clearly to the controller or user
Fallback: If no task system is available, track progress in plan files plus update_plan and report results directly.