testing-strategy
/testing-strategy
Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.
- Author
- officialdb ↗
- Repository
- TES-SKILLS ↗
- Licence
- Apache-2.0
- Last repository change
- 01.11.2026
Assessment and security
- Files in this package
- 4
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 01.11.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.
Original author description
Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.
How it works
- Purpose & Activation
- 1. The Practical Test Pyramid
- 2. Determinism & Mocking Discipline
- 3. Expected Deliverables
- 4. Progressive Disclosure (Reference Documents)
SKILL.md preview
---
name: testing-strategy
description: Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.
compatibility:
- hermes
- opencode
- codex
- claude-code
- gemini-cli
- generic
---
# Testing Strategy
## Purpose & Activation
`testing-strategy` teaches agents how to structure, implement, and maintain automated test suites that provide high confidence, execute rapidly, and remain completely deterministic.
- **Primary Skill For:** Designing test suites, establishing test patterns, improving test coverage, and debugging flaky or slow tests.
- **Composition:** Pair with `software-engineering` during feature implementation or refactoring; pair with `deployment-verification` for post-deploy smoke checks.
- **Ownership Boundary:** Universal pre-modification checks belong to `engineering-core`.
---
## 1. The Practical Test Pyramid
```
/ E2E / Smoke Tests (5–10%) \ <- Critical user paths, high confidence
/---------------------------------\
/ Integration Tests (15–20%) \ <- Real boundaries: DB, local HTTP, file I/O
/-------------------------------------\
/ Unit Tests (70–80%) \ <- Fast, pure logic, boundary conditions
```
1. **Unit Tests:** Fast, isolated, and in-memory. Test algorithmic branches, validation rules, state transitions, and edge cases.
2. **Integration Tests:** Verify communication across real boundaries (database repositories, message brokers, HTTP routers) using ephemeral or containerized resources.
3. **End-to-End Tests:** Reserved strictly for core user journeys. Kept minimal to avoid execution bloat and brittleness.
---
## 2. Determinism & Mocking Discipline
1. **Zero Flakiness:**
- Never use wall-clock `sleep()` statements to wait for async operations. Use polling with timeouts or event hooks.
- Inject clock providers or freeze time rather than checking `datetime.now()`.
2. **Hermetic Test Isolation:**
- Every test must be completely independent. Never share mutable global state across test cases.
- Use isolated temporary directories (`tmp_path`) for file operations and clean up after execution.
3. **Judicious Mocking:**
- Mock at the architectural perimeter (external billing APIs, third-party webhooks, email providers).
- Avoid mocking internal domain entities or data transfer objects; test domain logic with real instances.
---
## 3. Expected Deliverables
1. **Automated Test Suites:** Deterministic unit and integration tests covering positive and negative paths.
2. **Test Plan Specification:** Clear strategy detailing coverage goals, test levels, and fixtures.
3. **Execution Evidence:** Terminal verification showing passing test suites with zero warnings or hangs.
---
## 4. Progressive Disclosure (Reference Documents)
Consult these bundled documents only when specific deep guidance is needed:
- **Test pyramid and mocking strategies:** Consult [test-pyramid-and-mocking.md](references/test-pyramid-and-mocking.md).
- **Test suite hygiene checklist:** Consult [testing-checklist.md](checklists/testing-checklist.md).
- **Comprehensive test plan template:** Consult [test-plan-template.md](templates/test-plan-template.md).
Files in this package (4)
- SKILL.md 3 KB
- checklists/testing-checklist.md 1 KB
- references/test-pyramid-and-mocking.md 1 KB
- templates/test-plan-template.md 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · officialdb/TES-SKILLS | 100 | Apache-2.0 |
| komluk/scaffolding | 100 | MIT |
| oborchers/fractional-cto | 100 | MIT |
| anastasiyaw/codex-claude-code-config | 100 | MIT |
| andreibesleaga/gabbe | 100 | CC-BY-4.0 |
| organizzolini/codebase | 100 | MIT |
| shinpr/agentic-code | 100 | MIT |
| sagargupta16/claude-code-recipes | 100 | MIT |
| zakariaf/flutter-skills | 100 | MIT |
Database snapshot: 13.11.2026 · package version 357eb2f98ef5 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95pact-testing-strategies
Testing strategies, test pyramid guidance, and quality assurance patterns for PACT Test phase. Use when: designing test suites, implementing unit tests, integration tests, E2E tests, performance testing, security testing, or determining test coverage priorities. Triggers on:… - 90test-strategy
Design a pragmatic test strategy: pyramid, unit/integration/e2e/contract split, fixtures, flakiness, coverage and mutation testing, CI speed. Use when planning tests, fixing weak or flaky suites, or deciding what to test. - 100eng-testing
Use when writing tests, designing test strategy, or reviewing test coverage. Covers test pyramid, naming, mocking, and flaky test policy. - 85proof
QA and testing engineer — test strategy, E2E suites, API tests, flaky test triage, coverage. Use when asked to "write E2E tests", "design a test strategy", "triage flaky tests", or "check test coverage". - 95qa-strategy
Testing strategy and QA patterns. Use for test pyramid design, E2E test architecture, test automation frameworks, performance testing, and bug triage processes. - 100frontend-testing-strategy
Reference for building a reliable frontend test suite - choosing what to test at unit, component, integration and end-to-end levels; the test pyramid and its trade-offs; testing user-visible behavior with React Testing Library; Vitest and Playwright usage; API mocking at the…