Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

test-speed

/test-speed

Utrzymuje zestaw testów na tyle szybki, by uruchamiać go przy każdej zmianie: mierzy wolne testy, kształtuje piramidę, usuwa IO z szybkiej warstwy i stosuje sharding.

Repozytorium
AI-SKILLS ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.09.2026

Ocena i bezpieczeństwo

90/ 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ść25 / 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
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Utrzymuje zestaw testów na tyle szybki, by uruchamiać go przy każdej zmianie: mierzy wolne testy, kształtuje piramidę, usuwa IO z szybkiej warstwy i stosuje sharding.

Oryginalny opis (EN)

Keep the suite fast enough to run on every change by measuring the slow tests, shaping the pyramid, cutting IO from the fast tier, and sharding. Use when the suite is slow enough that developers skip it or batch changes to avoid the wait.

Jak działa

  1. Method
  2. Checks
  3. Boundaries
Sekcje z nagłówków SKILL.md, w oryginale · 49 linii, 406 słów
Podgląd SKILL.md
---
name: test-speed
description: Keep the suite fast enough to run on every change by measuring the slow tests, shaping the pyramid, cutting IO from the fast tier, and sharding. Use when the suite is slow enough that developers skip it or batch changes to avoid the wait.
---

# Test speed

A suite that takes twenty minutes stops being run. People push without it,
batch unrelated changes to amortize the wait, and the fast feedback the suite
exists to give quietly collapses. Speed is not vanity: it is what keeps testing
inside the edit loop. Most slow suites are slow for a few measurable reasons,
and the culprits are rarely the tests you would guess.

## Method

1. **Measure before optimizing.** Run `pytest --durations=25`, Go's `-json`
   timing, or Jest `--verbose` and sort. A handful of tests usually own most of
   the wall clock; fix those and ignore the fast majority.
2. **Shape the pyramid toward the fast tier.** Where a unit test can cover a
   rule, delete the integration test that duplicates it and keep integration
   tests for the wiring only. To audit the current distribution, defer to
   test-pyramid-audit.
3. **Cut IO the fast tier does not verify.** Replace a real database with an
   in-memory one or transactional rollback, swap sleep-and-poll for an injected
   clock, and stub network calls. A unit test that opens a socket is misfiled:
   move it or fake the boundary. For choosing those doubles, defer to
   test-doubles.
4. **Reuse expensive setup instead of rebuilding it.** Start Testcontainers or
   a dev database once with `scope="session"`, not per test, and reset data
   with fast truncation. A per-test container start is often the single largest
   line in the durations report.
5. **Run in parallel across cores.** Turn on `pytest -n auto` (xdist), Go's
   default package parallelism, or Jest workers. This requires isolation to
   already hold, so fix order-dependence before expecting the gain.
6. **Shard across CI machines and cache the unchanging.** Split the suite by
   timing across runners so total time drops toward the slowest shard, and reuse
   built Docker layers and warmed dependency caches so cold-start cost is not
   paid every run.

## Checks

- Does `--durations` show a flat tail rather than a few tests dominating?
- Does the unit tier run with zero real network or disk access?
- Does wall-clock time roughly halve when you double the workers?

## Boundaries

Speed serves feedback: do not trade away coverage of real integration seams to
hit a number, and keep a slower e2e stage for genuine end-to-end confidence.
Micro-optimizing already-fast unit tests is wasted effort. What to cover at each
tier is testing-strategy's call. A system that is simply slow to boot is an
architecture problem this skill cannot paper over.

Wersje

RepozytoriumWynikLicencja
Ta strona · Amey-Thakur/AI-SKILLS90MIT
motlin/claude-code-plugins100Apache-2.0
Krystosterone/dashhaus100MIT

Migawka bazy z 13.11.2026 · wersja paczki f9edcf5d5501 (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

  • 90test-pyramid-audit
    Przesuwa przeciążony testami end-to-end zestaw w stronę szybkich testów jednostkowych bez utraty pokrycia dawanego przez wolne testy, gdy CI jest wolne, niestabilne lub drogie.
  • 100make-it-fast
    Przegląda zmianę pod kątem szybkości i wydajności (zapytania do bazy, czas żądania, szybkość testów, responsywność stron), weryfikuje każde znalezisko, naprawia to, co da się zmierzyć, i raportuje liczby przed i po.
  • 90proof-audit
    Audytuje kondycję zestawu testów: znajduje testy niestabilne i wolne, luki w pokryciu oraz antywzorce testowania.
  • 90proof-audit
    Audytuje kondycję zestawu testów: znajduje testy niestabilne i wolne, luki w pokryciu oraz antywzorce testowania.
  • 90test-strategy
    Decyduje, co testować na którym poziomie: jednostkowym, integracyjnym, kontraktowym czy e2e, i projektuje szybki, deterministyczny zestaw testów serwisu.
  • 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.