test-truth
/test-truth
Pisze i ufa tylko testom, które padają, gdy zachowanie się psuje, a dowodem jest celowe psucie kodu w kontrolowany sposób.
- Autor
- ciro-maciel ↗
- Repozytorium
- ccm-stack ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 10.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 10.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pisze i ufa tylko testom, które padają, gdy zachowanie się psuje, a dowodem jest celowe psucie kodu w kontrolowany sposób.
Oryginalny opis (EN)
Write and trust only tests that fail when the behavior breaks, proved by sabotage. Use when writing, changing or reviewing tests.
Jak działa
- Sabotage is how you check a test
- Traps that keep a broken suite green
- One test account
- Review checklist
Podgląd SKILL.md
--- name: test-truth description: Write and trust only tests that fail when the behavior breaks, proved by sabotage. Use when writing, changing or reviewing tests. --- # Tests that prove something A green suite proves only that nothing it checks failed. Whether it checks the right thing is a separate question, and you answer it by breaking the code. ## Sabotage is how you check a test After writing a test, break the code it protects (invert a condition, return early, delete the call) and run it. It must turn red. Put the code back and it must turn green. A test you never saw fail has not been tested. ## Traps that keep a broken suite green - **Two locks, one test.** When two checks guard the same result (one on write, one on read), an end-to-end test passes while either one alone still holds. Give each check its own assertion that fails when only that check is gone, and sabotage them one at a time. - **A 200 on a write proves nothing.** The old version also answers 200. Write a value that did not exist before this run (a timestamp, a random id) and look for that exact value when you read back. Retry the read a few times before failing: a cache serving the old version for seconds is the cache working. - **The API does not prove the screen.** A blank page leaves every API green. A journey that matters drives the real interface (see the `verify` skill). - **Skipped means silent.** `skipIf(!exists(path))` turns into a no-op when the path moves, and nothing reports it. Fail when a precondition is missing instead of skipping. - **Mocks that leak.** Module mocks that are global in your test runner leak across files and break only when the order changes, usually in CI. Prefer dependency injection; reset what you mock. - **The mock is the old contract.** A mock copied from the other side freezes it; when the real side changes, the tests stay green against a contract that no longer exists. Test against the real thing at the boundary, or regenerate the fixture from it. - **Testing the implementation.** Assert what a caller or user can observe, so the test survives a refactor and fails when behavior breaks. ## One test account Every test that signs in uses one dedicated account with an inbox you control, never a real person's address. Configure it as `testEmail` in CCM Stack, and a hook will refuse login and code flows sent anywhere else. ## Review checklist For each test: what behavior does it protect, how would it fail, and did you see it fail? If any answer is "not sure", sabotage before you trust it.
Wersje
W bazie nie ma innych skilli o nazwie test-truth.
Migawka bazy z 13.11.2026 · wersja paczki b75951e04379 (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
- 76principle-test-behavior-not-implementation
Stosuje zasadę testowania obserwowalnego zachowania: test sprawdza to, co widzą użytkownicy kodu, więc zawodzi, gdy zachowanie się psuje, i przechodzi, gdy zmieniają się tylko wnętrzności. - 81principle-test-behavior-not-implementation
Stosuje zasadę testowania obserwowalnego zachowania: test sprawdza to, co widzą użytkownicy kodu, więc zawodzi, gdy zachowanie się psuje, i przechodzi, gdy zmieniają się tylko wnętrzności. - 81principle-test-behavior-not-implementation
Pomaga pisać testy sprawdzające widoczne zachowanie kodu, które padają przy zepsuciu działania i przechodzą przy zmianie wnętrza kodu. - 100write-tests
Pisze testy sprawdzające zachowanie produktu, bez zależności od szczegółów implementacji i wartości konfiguracji. - 100write-tests
Pisze testy sprawdzające zachowanie produktu, bez zależności od szczegółów implementacji i wartości konfiguracji. - 81principle-test-behavior-not-implementation
Ustala w testach to, co widzą użytkownicy kodu, aby test padał, gdy zachowanie się psuje, a przechodził przy zmianach wnętrza.