SKILL

test-truth

Write and trust only tests that fail when the behavior breaks, proved by sabotage. Use when writing, changing or reviewing tests.

Target: Target not categorized. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • Tests that prove something
  • Sabotage is how you check a test
  • Traps that keep a broken suite green
  • One test account
  • Review checklist

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. 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. 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

This is an excerpt. Refer to the complete source and its current requirements.

Source repository
ciro-maciel/ccm-stack
Source file
skills/test-truth/SKILL.md
Fixed revision
6a6896522126857f460a3e3747bc0ec5607a8fea
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: ciro-maciel/ccm-stack · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T22:01:44.609Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.