testing
Test strategy, patterns, and coverage optimization for quality assurance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Test strategy, patterns, and coverage optimization for quality assurance
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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: