Skip to content
Skills Library
Programming · Learning & explanation

testing-strategy

/testing-strategy

Comprehensive testing methodology, test pyramid, deterministic unit tests, and integration testing. Use when designing test suites or debugging flaky tests.

Repository
TES-SKILLS ↗
Licence
Apache-2.0
Last repository change
01.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
4
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 01.11.2026, without references to retired models or APIs.

Licence

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

  1. Purpose & Activation
  2. 1. The Practical Test Pyramid
  3. 2. Determinism & Mocking Discipline
  4. 3. Expected Deliverables
  5. 4. Progressive Disclosure (Reference Documents)
Original SKILL.md headings · 56 lines, 365 words
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

RepositoryScoreLicence
This page · officialdb/TES-SKILLS100Apache-2.0
komluk/scaffolding100MIT
oborchers/fractional-cto100MIT
anastasiyaw/codex-claude-code-config100MIT
andreibesleaga/gabbe100CC-BY-4.0
organizzolini/codebase100MIT
shinpr/agentic-code100MIT
sagargupta16/claude-code-recipes100MIT
zakariaf/flutter-skills100MIT

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…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.