test-strategy
Test planning and strategy patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Test planning and strategy patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Patterns for generating Gamma.app-compatible slide deck markdown from GitHub data for customer-facing account management presentations
Patterns for generating Gamma.app-compatible slide deck markdown from Linear data for customer-facing account management presentations
Patterns and templates for creating sprint/project retrospective reports from Jira data with time tracking and blocker analysis.
Multi-platform Electron build configuration - esbuild bundling, electron-builder setup, and distribution
Integrate external CLI tools (Claude, Node, npx) in Electron apps with proper PATH handling
Handle native Node.js modules in Electron - better-sqlite3, sharp, keytar packaging patterns
| name | test-strategy |
| description | Test planning and strategy patterns |
Patterns for planning and organizing test suites.
┌─────────┐
│ E2E │ Few - Slow, Expensive
├─────────┤
│ Integ │ Some - Medium
├─────────┤
│ Unit │ Many - Fast, Cheap
└─────────┘
tests/
├── auth/
│ ├── login.test.ts
│ ├── logout.test.ts
│ ├── register.test.ts
│ └── password-reset.test.ts
├── users/
│ ├── create-user.test.ts
│ ├── update-user.test.ts
│ └── delete-user.test.ts
└── orders/
├── create-order.test.ts
└── order-flow.e2e.ts
tests/
├── unit/
│ ├── services/
│ ├── utils/
│ └── models/
├── integration/
│ ├── api/
│ └── database/
└── e2e/
├── flows/
└── pages/
Tests that must never fail:
Tests for important features:
Tests for auxiliary features:
// should [expected behavior] when [condition]
it('should return empty array when no users exist')
it('should throw ValidationError when email is invalid')
it('should update user when data is valid')
describe('UserService', () => {
describe('createUser', () => {
describe('with valid data', () => {
it('should create user')
it('should send welcome email')
})
describe('with invalid data', () => {
it('should throw ValidationError for missing email')
it('should throw ValidationError for invalid email format')
})
})
})
// fixtures/users.ts
export const validUser = {
email: 'test@example.com',
name: 'Test User',
role: 'user'
}
export const adminUser = {
email: 'admin@example.com',
name: 'Admin User',
role: 'admin'
}
export const invalidUsers = {
missingEmail: { name: 'No Email' },
invalidEmail: { email: 'not-an-email', name: 'Bad Email' }
}
// factories/user.factory.ts
import { faker } from '@faker-js/faker'
export function createUser(overrides = {}) {
return {
id: faker.string.uuid(),
email: faker.internet.email(),
name: faker.person.fullName(),
createdAt: faker.date.past(),
...overrides
}
}
// Usage
const user = createUser({ role: 'admin' })
const users = Array.from({ length: 10 }, () => createUser())
{
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
},
"./src/services/": {
"branches": 90,
"lines": 90
}
}
}
Used by:
unit-test-developer agentapi-test-developer agente2e-test-developer agent