@agent-quorum:knowledge:references:planner:test-strategyfrom quorum — Cross-Model Audit Gate
Defines the testing approach for a track — coverage targets, test levels, test data, risk-based priorities, and environment dependencies. Bridges individual test items to project quality goals.
Ships in quorum — Cross-Model Audit Gate. Installing the plugin adds it to Claude Code.
The test strategy defines the testing approach for a track — what levels of testing, what coverage targets, what environments, and what tools. It bridges the gap between individual WB test items and the project's overall quality goals.
{planning_dir}/{track-name}/test-strategy.md — one per track, optional (only for tracks with significant testing needs).
Do NOT write for simple tracks where WB-level test descriptions are sufficient.
# Test Strategy: {Track Name}
## Coverage Targets
| Metric | Target | Current | Method |
|--------|--------|---------|--------|
| Statement coverage | ≥ 85% | 62% | test runner `--coverage` |
| Branch coverage | ≥ 75% | 48% | test runner `--coverage` |
| Changed file coverage | 100% files have tests | — | RTM forward matrix |
## Test Levels
### Unit Tests
- **Scope**: Individual functions and classes
- **Framework**: (project test runner — e.g. vitest, pytest, cargo test)
- **Location**: `tests/{module}/*.test.*`
- **Naming**: `test_{subject}_{scenario}_{expected}`
### Integration Tests
- **Scope**: Cross-module interactions, API endpoints
- **Framework**: (project test runner + HTTP client)
- **Location**: `tests/integration/*.test.ts`
- **Setup**: Mock server via `createMockServer()` helper
### E2E Tests (if applicable)
- **Scope**: Full user flows through UI
- **Framework**: Playwright
- **Location**: `web/e2e/*.test.ts`
- **Environment**: Requires running dev server
## Test Data
- **Fixtures**: `tests/fixtures/` — static test data files
- **Factories**: `tests/helpers/factories.ts` — dynamic test data generators
- **Mock server**: `tests/helpers/mock-server.ts` — configurable HTTP mock
## Risk-Based Priorities
| Risk Area | Test Focus | WB Items |
|-----------|-----------|----------|
| Auth bypass | Negative auth tests for every new endpoint | OR-3, OR-5 |
| Data corruption | Transaction rollback tests | OR-2 |
| UI regression | Snapshot tests for changed components | FE-1, FE-3 |
## Dependencies
- External services to mock: Redis, PostgreSQL, external APIs
- Test environment requirements: Node.js 20+, Docker (for integration)
- CI considerations: parallel test execution, flaky test quarantine
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
npx claudepluginhub berrzebb/quorum --plugin quorum115 agents in this plugin
knowledge:domains:a11yAccessibility Auditor — Domain Knowledge**Primary tool**: `a11y_scan`knowledge:domains:compatCompatibility Reviewer — Domain Knowledge**Primary tool**: `compat_check`knowledge:domains:complianceCompliance Officer — Domain Knowledge**Primary tool**: `license_scan`knowledge:domains:concurrencyConcurrency Verifier — Domain Knowledge**Primary tool**: `dependency_graph`knowledge:domains:docsDocumentation Steward — Domain Knowledge**Primary tool**: `doc_coverage`knowledge:domains:i18ni18n Checker — Domain Knowledge**Primary tool**: `i18n_validate`Other plugins' agents for the same job