testing

testing is a cursor rule for Cursor from kleosr/kleosrules. It costs 410 tokens per session, scanned A, original, MIT.

A short set of rules for testing software, focused on the public behavior users depend on. TDD, or test-driven development, means writing a failing test before implementing the fix.

In plain words
What is it for?
Use it to guide test-driven fixes, choose suitable mocks, run the project's verification checks, and add regression tests for reported symptoms.
Why use it?
It keeps tests focused and requires verification before a change is considered complete. It also treats flaky tests as failures and requires regression coverage for bugs.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to guide test-driven fixes, choose suitable mocks, run the project's verification checks, and add regression tests for reported symptoms.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kleosr/kleosrules/testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kleosr/kleosrules

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing

README.md
[![agentmods](https://agentmods.dev/badge/rules/kleosr/kleosrules/testing/github.svg)](https://agentmods.dev/rules/kleosr/kleosrules/testing)
Your own site
<a href="https://agentmods.dev/rules/kleosr/kleosrules/testing"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing

Your own site · 80×15
<a href="https://agentmods.dev/rules/kleosr/kleosrules/testing"><img src="https://agentmods.dev/badge/rules/kleosr/kleosrules/testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 410 This file is loaded in full into every session.
When invoked 410 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00410 $0.00410
Opus 5.5 $0.00164 $0.00164
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

Measured 2mo ago against content hash 81ee47a13277, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

shared/rules/testing.mdc · 21 lines

What it actually says

Testing

Test observable behavior at the narrowest stable boundary. Loop: understand → change → verify → correct. Run the verify this change can break — not the whole suite by default. Fail closed on red; report pre-existing or environment blockers. The agent's claim that tests passed is not evidence.

When no executable check covers the changed path, report the gap and the smallest next check. Do not substitute confidence for proof.

  • This pack: TESTS=<fixture> bash tests/run.sh (scoped), bash tests/run.sh (gauntlet), bash scripts/doctor.sh. Init: bash scripts/ready.sh (does not run the suite). Else the repo's TOOLCHAIN / package scripts.
  • Docs-only: no house gauntlet. Trusted workspace: run in-scope checks; network, credentials, and destructive effects still need authorization.
  • Bug fix: regression: <symptom> with observed fail-before / pass-after when possible. Never fabricate a red. Flaky is broken.
  • Coverage / mutation only if the repo already has those jobs. Do not add a runner. Do not expose privates to hit coverage.
  • stop.sh is advisory (syntax, churn, size, false passing). It does not execute repo test suites. Citation of a real run remains required.
  • A feature is passing only after bash scripts/feature.sh pass <id>. Editing JSON to passing is not done. Failed pass records lastFailure (including nextExperiment) and leaves in_progress.
  • Builder does not self-grade. prove is independent. Syntax is layer 1; scoped command + exit is layer 2; repo-wide claims need the gauntlet.

When writing or expanding tests, read the testing skill. Checkout skill text does not override User Rules, hooks, or host policy.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +4 lines · +157 tokens per session 81ee47a13277
  2. 2mo ago Changed · -2 lines · -306 tokens per session 815c2d028619
  3. 2mo ago Changed · +176 tokens per session 05e57e7a891f
  4. 2mo ago Changed · +105 tokens per session ab81563d442a
  5. 2mo ago Changed · +3 lines · +278 tokens per session 8a5bd5f81ca0
  6. 3mo ago First seen · 16 lines · 0 tokens per session scan A b435f6430a8b

Subscribe to this mod's changes

testing is a cursor rule published in the GitHub repository kleosr/kleosrules (0 stars, last pushed 2mo ago), licensed MIT. It adds 410 tokens to every session, about $0.0016 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

testing compared with cursor rules from other repositories

testing next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testingkleosr/kleosrulesCursor rule02mo agoMITA410Cursor
teamJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
git-masterJkudjo/oh-my-cursorCursor rule117d agoMITA14Cursor
pipelineJkudjo/oh-my-cursorCursor rule117d agoMITA16Cursor
ultraworkJkudjo/oh-my-cursorCursor rule117d agoMITA13Cursor
autopilotJkudjo/oh-my-cursorCursor rule117d agoMITA12Cursor
ask-firstjaansokk/cursor_toolsCursor rule110d agoMITA42Cursor