Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

testing

/testing

Wymusza pisanie testów przed kodem implementacji przy każdej funkcji i poprawce błędu.

Repozytorium
superlite ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

86/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność21 / 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 12.11.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

Wymusza pisanie testów przed kodem implementacji przy każdej funkcji i poprawce błędu.

Oryginalny opis (EN)

Use when implementing any feature or bugfix, before writing implementation code

Jak działa

  1. Cycle
  2. Scope of runs
  3. Bugfixes
  4. Good tests
  5. Exceptions
  6. Red flags: stop and restart from the test
  7. Done checklist
Sekcje z nagłówków SKILL.md, w oryginale · 49 linii, 422 słów
Podgląd SKILL.md
---
name: testing
description: Use when implementing any feature or bugfix, before writing implementation code
---

# Testing

Write the test first. Watch it fail. Write the minimum code to pass. No production code without a failing test that demands it.

If you wrote code before the test, delete it and restart from the test. Do not keep it as "reference".

## Cycle

1. **Red.** Write one small test for one behavior: a clear name, real code (mocks only when unavoidable), exact expected values. Run only that test. Confirm it fails for the right reason (the feature is missing, not a typo or import error). A test that passes immediately proves nothing: fix the test.
2. **Green.** Write the simplest code that passes. No extra features, no refactoring of other code. Run the focused tests (the new test plus the tests in the same file or module). Confirm green and no new failures there.
3. **Refactor.** Remove duplication, improve names, keep tests green. Skip if nothing needs it.
4. Repeat for the next behavior.

## Scope of runs

- Run only focused tests inside a task: the new test, then its file or module.
- Do not run the full suite inside a task. Shipping runs the finish test run; inside a task use `bash <skill-dir>/../swarm/scripts/superlite-cli run_tests --affected --files <touched files> --background`, then `--wait --run <id>` with the id from its `wait:` line, never a bare `--wait` (`--fast PATHS` is the manual fallback). When working inline, run `--affected` once at the end and read its one-line summary.

## Bugfixes

Reproduce the bug as a failing test first, see it fail, then fix. The test is the regression guard. Use `superlite:diagnosis` to find the root cause before writing the fix.

## Good tests

- One behavior per test; "and" in the name means split it.
- Assert observable behavior, not implementation details.
- Cover the contract's edge cases: empty input, errors, boundaries.

## Exceptions

Throwaway prototypes, generated code and pure configuration need no test-first. If unsure whether it applies, it does.

## Red flags: stop and restart from the test

- Code written before the test.
- The test passed on its first run.
- "I'll add tests after", "too simple to test", "just this once".
- Several behaviors implemented before any test ran.

## Done checklist

- Every new function or behavior has a test that you saw fail first.
- Each failed for the expected reason, and the minimal code made it pass.
- Focused tests are green, output clean.
- Edge cases and errors covered.

Cannot check every box: say which and why. Then see `superlite:proof`.

Wersje

RepozytoriumWynikLicencja
Ta strona · iha2/superlite86MIT
iuliandita/skills100MIT
wrongstack/wrongstack100MIT
langwatch/langwatch100Apache-2.0
mcouthon/agents100MIT
nteract/nteract100BSD-3-Clause
kettleofketchup/DraftForge100GPL-3.0
skillberry-ai/cap-evolve100Apache-2.0
TheBeardedBearSAS/claude-craft100MIT

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

  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.
  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.
  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.
  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.
  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.
  • 96test-driven-development
    Wymusza pisanie testów przed kodem implementacji przy każdej nowej funkcji i poprawce błędu.

Uwagi i zgłoszenia

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