Test Master
Comprehensive testing across functional, performance, and security disciplines.
When to use
Writing tests at any level, building strategies/frameworks, analyzing coverage, load/security testing, or stabilizing flaky tests.
Core workflow
- Define scope — what to test and which test types apply.
- Create strategy — functional, performance, security perspectives.
- Write tests — proper assertions, isolated dependencies.
- Execute — run and collect results. On failure, classify (assertion vs environment/flakiness), fix root cause, re-run. For flaky: isolate ordering deps, check async handling, stabilize.
- Report — findings with severity + actionable fixes; verify coverage targets, flag gaps.
Quick-start example
describe('calculateDiscount', () => {
it('applies 10% discount for premium users', () => {
expect(calculateDiscount({ price: 100, userTier: 'premium' })).toBe(90); // specific, not truthy
});
it('throws on negative price', () => {
expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))
.toThrow('Price must be non-negative');
});
});
Apply the same structure for pytest (def test_…, assert result == expected).
Constraints
MUST: test happy paths AND error/edge cases (empty, null, boundary); mock external deps in unit tests; use plain-English it('…') descriptions; assert specific outcomes; run in CI and remediate coverage gaps.
MUST NOT: skip error-path testing; use production data (use fixtures/factories); create order-dependent tests; ignore flaky tests (quarantine + fix, don't just re-run); test implementation details — test observable behavior.
Output
- Test scope and approach
- Test cases with expected outcomes
- Coverage analysis
- Findings with severity (Critical/High/Medium/Low)
- Specific fix recommendations
1---2name: test-master3description: "Use when writing unit/integration/E2E tests, creating test strategies or automation frameworks, analyzing coverage gaps, load testing (k6/Artillery), security testing, or fixing flaky tests. Triggers: test, testing, QA, unit test, integration test, E2E, coverage, performance test, security test, regression, test strategy, test automation, quality gate, flaky test."4version: 1.0.05license: MIT6tags: [testing, qa, unit-test, integration-test, e2e, coverage, load-testing, flaky-tests]7source: https://github.com/jeffallan/claude-skills/tree/main/skills/test-master8derived_from: awesomeclaude9metadata:10 source: https://skillmd.com/skills/aashutosh396/test-master11---1213# Test Master1415Comprehensive testing across functional, performance, and security disciplines.1617## When to use1819Writing tests at any level, building strategies/frameworks, analyzing coverage, load/security testing, or stabilizing flaky tests.2021## Core workflow22231. **Define scope** — what to test and which test types apply.242. **Create strategy** — functional, performance, security perspectives.253. **Write tests** — proper assertions, isolated dependencies.264. **Execute** — run and collect results. On failure, classify (assertion vs environment/flakiness), fix root cause, re-run. For flaky: isolate ordering deps, check async handling, stabilize.275. **Report** — findings with severity + actionable fixes; verify coverage targets, flag gaps.2829## Quick-start example3031```js32describe('calculateDiscount', () => {33 it('applies 10% discount for premium users', () => {34 expect(calculateDiscount({ price: 100, userTier: 'premium' })).toBe(90); // specific, not truthy35 });36 it('throws on negative price', () => {37 expect(() => calculateDiscount({ price: -1, userTier: 'standard' }))38 .toThrow('Price must be non-negative');39 });40});41```42Apply the same structure for pytest (`def test_…`, `assert result == expected`).4344## Constraints4546MUST: test happy paths AND error/edge cases (empty, null, boundary); mock external deps in unit tests; use plain-English `it('…')` descriptions; assert specific outcomes; run in CI and remediate coverage gaps.47MUST NOT: skip error-path testing; use production data (use fixtures/factories); create order-dependent tests; ignore flaky tests (quarantine + fix, don't just re-run); test implementation details — test observable behavior.4849## Output50511. Test scope and approach522. Test cases with expected outcomes533. Coverage analysis544. Findings with severity (Critical/High/Medium/Low)555. Specific fix recommendations