Przejdź do treści
Biblioteka skilli
Programowanie · Nauka i wyjaśnianie

testing-strategy

/testing-strategy

Opisuje metodykę testów: piramidę, deterministyczne testy jednostkowe i integracyjne oraz diagnozę niestabilnych testów.

Repozytorium
TES-SKILLS ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
01.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 01.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Opisuje metodykę testów: piramidę, deterministyczne testy jednostkowe i integracyjne oraz diagnozę niestabilnych testów.

Oryginalny opis (EN)

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

Jak działa

  1. Purpose & Activation
  2. 1. The Practical Test Pyramid
  3. 2. Determinism & Mocking Discipline
  4. 3. Expected Deliverables
  5. 4. Progressive Disclosure (Reference Documents)
Sekcje z nagłówków SKILL.md, w oryginale · 56 linii, 365 słów
Podgląd SKILL.md
---
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).
Pliki w paczce (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

Wersje

RepozytoriumWynikLicencja
Ta strona · 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

Migawka bazy z 13.11.2026 · wersja paczki 357eb2f98ef5 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95pact-testing-strategies
    Doradza strategie testów w fazie PACT Test, czyli piramidę testów, testy jednostkowe, integracyjne i E2E oraz pokrycie kodu.
  • 90test-strategy
    Projektuje praktyczną strategię testów: piramidę, podział na jednostkowe, integracyjne, e2e i kontraktowe, a także mutacje i szybkość CI.
  • 100eng-testing
    Prowadzi przy pisaniu testów, projektowaniu strategii testów i przeglądzie pokrycia: piramidę testów, nazewnictwo, mockowanie i politykę testów niestabilnych.
  • 85proof
    Działa jako inżynier QA i testów: strategia testów, zestawy E2E, testy API, triage niestabilnych testów i pokrycie.
  • 95qa-strategy
    Projektuje strategię testów: piramidę testów, architekturę E2E, wydajność i proces triage błędów.
  • 100frontend-testing-strategy
    Planuje niezawodny zestaw testów frontendu: poziomy testów, piramidę, testy zachowania, mockowanie API, dostępność i testy wizualne.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.