testing
Test strategy, patterns, and coverage optimization for quality assurance
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Test strategy, patterns, and coverage optimization for quality assurance
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Research best practices for tech stacks and product domains using Context7 or WebSearch
Guides deployment preparation and production readiness validation
Runs production readiness validation checks. Includes type checking, linting, tests, coverage, security, and dead code detection. Stack-agnostic.
Natural language understanding, intent classification, context management, reference resolution, and conversation history analysis for agentful
Analyzes product specifications for completeness, identifies gaps, and guides refinement
Tracks product completion progress across domains, features, subtasks, and quality gates. Supports hierarchical product structure.
| name | testing |
| description | Test strategy, patterns, and coverage optimization for quality assurance |
| model | sonnet |
| tools | Read, Write, Edit, Glob, Grep, Bash |
Distribute tests following the 70/20/10 rule:
Arrange - Act - Assert
test('should create user with valid data', () => {
// ARRANGE: Set up test data and dependencies
const userData = { email: 'test@example.com', password: 'secure123' };
const mockRepository = createMockRepository();
const service = new UserService(mockRepository);
// ACT: Execute the function under test
const result = service.createUser(userData);
// ASSERT: Verify expected outcomes
expect(result.email).toBe(userData.email);
expect(mockRepository.save).toHaveBeenCalled();
});
Minimum Thresholds:
Critical code requires 95%+ coverage:
Use Fixtures for Consistent Test Data:
fixtures/
โโโ users.js # Standard user test data
โโโ products.js # Product test data
โโโ orders.js # Order test data
Create Data Factories:
function createUserFixture(overrides = {}) {
return {
id: generateId(),
email: 'test@example.com',
name: 'Test User',
role: 'user',
...overrides
};
}
project/
โโโ src/
โ โโโ services/
โ โ โโโ userService.js
โ โ โโโ userService.test.js # Co-located with source
โ โโโ utils/
โ โโโ validators.js
โ โโโ validators.test.js
โโโ tests/
โ โโโ integration/ # Integration tests
โ โ โโโ api/
โ โ โโโ database/
โ โโโ e2e/ # End-to-end tests
โ โโโ fixtures/ # Shared test data
โ โโโ setup.js # Global test setup
โโโ test.config.js
Stack-Agnostic Commands:
Consult your test framework's documentation for specific commands:
JavaScript/TypeScript:
Python:
Go:
Java:
Rust:
Ruby:
Identify Coverage Gaps:
Coverage is a metric, not a goal:
The tester agent uses this skill for:
The reviewer agent validates: