Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Real Tests And Verification?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ganesh-dark-real-tests-and-verification)
---
name: real-tests-and-verification
description: Use when fixing bugs, writing unit tests, or running test suites. Prevents fake passing tests, weakened assertions, and unverified fixes.
---
# Real Tests and Verification
A green test badge means nothing if the test was weakened to pass or if the agent never actually ran the suite after its last edit.
## Rules
- Reproduce a bug before fixing it. Write a failing test or run a failing command first so you see the exact error before touching source code.
- Never weaken an assertion, wrap it in `try/except`, or delete a failing test to make a suite pass. Fix the code or report the failure honestly.
- Mock only external boundaries like network requests, third-party APIs, databases, or system clocks. Never mock the core function or logic you are supposed to be testing.
- Write two or three sharp tests (normal input, empty or null input, invalid input) instead of twenty repetitive happy-path tests.
- Always run the relevant tests or linter after your final code edit. In your final reply, state the exact command you ran and the exact pass/fail/skip counts. Never claim a full pass on a filtered or mocked run.
## Example
Bad:
`assert calculate_discount(100, 20) == 80` fails with `85`, so the agent changes the test to `assert calculate_discount(100, 20) >= 80` and says "All tests pass."
Good:
The agent keeps `assert calculate_discount(100, 20) == 80`, fixes the discount formula in `pricing.py`, runs `pytest tests/test_pricing.py`, and reports: "Ran `pytest tests/test_pricing.py`: 4 passed, 0 failed."