write-tests
/write-tests
Pisze lub rozszerza testy dla kodu: jednostkowe, regresyjne dla błędu albo pokrycie nowej funkcji.
- Autor
- maxed4you ↗
- Repozytorium
- Maxedcode ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Pisze lub rozszerza testy dla kodu: jednostkowe, regresyjne dla błędu albo pokrycie nowej funkcji.
Oryginalny opis (EN)
Use when the user asks to write, add or extend tests for some code (unit tests, regression test for a bug, coverage of a new feature).
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 21 linii, 218 słów
Podgląd SKILL.md
--- name: write-tests description: Use when the user asks to write, add or extend tests for some code (unit tests, regression test for a bug, coverage of a new feature). --- # Write tests What to test: $ARGUMENTS 1. Find how the project tests: existing test folders (`tests/`, `test_*.py`, `*_test.py`, `*.spec.ts`), the runner (pytest/unittest config, run_all_tests.py, package.json scripts, Makefile). Read one existing test file near the target and copy its style: framework, fixtures, naming, imports, helpers. No tests yet: Python - unittest or pytest (whichever is installed), one `tests/test_<module>.py`. 2. Read the code under test. List the cases before writing: - the normal path with typical input; - edges: empty, None, zero, one item, very large, unicode/Cyrillic, Windows paths with spaces; - error paths: invalid input must raise or return the documented error; - for a bug: a test that fails on the old code and passes on the fixed code. 3. Write focused tests: one behaviour per test, clear names (`test_<what>_<when>`), exact assertions on values, not just "no exception". Mock only external things (network, model API, clock, subprocess); use temp dirs for files. No sleeps, no dependence on test order or on the user's machine state. 4. Run only the new tests, then the whole related suite. A new test that fails exposes either a test mistake (fix the test) or a real bug (report it, do not change the code under test unless asked). Report: the test file(s), the cases covered, the run command and its result.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · maxed4you/Maxedcode | 86 | Apache-2.0 |
| onsi/biloba | 100 | MIT |
| runwield/runwield | 100 | MIT |
| dzhng/jevgrep | 100 | MIT |
| lukedj78/dev-flow | 100 | MIT |
| dzhng/skills | 100 | MIT |
| rowansci/rowan-python | 100 | MIT |
| yaohuangguan/agent-playbook | 100 | MIT |
| microsoft/semantic-link-labs | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 2e19f1c3d813 (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
- 100v1-write-tests
Pisze testy jednostkowe do zmian w kodzie i nowej funkcjonalności, zanim trafią do przeglądu. - 100test-unit
Pisze testy jednostkowe i integracyjne dla wskazanego modułu lub zmiany, na przykład dla pojedynczej funkcji. - 84generate-tests
Generuje testy jednostkowe, integracyjne i e2e dla kodu, na przykład dla funkcji, endpointów API czy przepływu zakupowego. - 100unit-testing
Pisze i aktualizuje testy jednostkowe dla nowego lub zmienionego kodu, uruchamia je z pokryciem i naprawia błędy. - 100unit-tests
Pisze lub przegląda testy jednostkowe przez eksportowane zachowanie, także testy regresji i kruche sprawdzenia do wymiany. - 100playwright-test-writer
Pisze i rozszerza testy Playwright E2E dla strony lub funkcji, także przy poprawkach istniejących testów przeglądarkowych.