testing Cursor ruleA

testing from stbenjam/skillsaw is a Cursor rule: instructions the Cursor agent follows in that repo.

Install it, pinned
mdr add stbenjam/skillsaw/.cursor/rules/testing.mdc@git:20260828.2b62c03

Pins git:20260828.2b62c03 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
Cursor rule
Repository
stbenjam/skillsaw
Path
.cursor/rules/testing.mdc
Versions recorded
3
Latest version
git:20260828.2b62c03, committed Aug 28, 2026
First version recorded
May 13, 2026
Size
2,962 bytes
Repository stars
69
License
Apache-2.0

Guidelines for writing tests, especially integration tests with fixtures.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

<!-- Source paths below are repo-root-relative references, not links navigable from this file's directory. -->
<!-- skillsaw-disable content-unlinked-internal-reference -->

# Testing

## Integration Tests

Integration tests live in `tests/test_integration.py` and verify end-to-end
behavior by driving the CLI (`skillsaw lint` / `fix`) against realistic repo
fixtures.

### Drive the CLI through `run_cli`

`run_lint` and the `_run_fix` helpers call `run_cli` from
`tests/cli_runner.py`, which invokes `skillsaw.cli.main()` in-process with
argv, stdout, stderr, env and cwd swapped, and returns a
`subprocess.CompletedProcess` stand-in. Spawning an interpreter per call cost
~160ms — more than half of it importing skillsaw — and dominated the suite.
Prefer `run_cli` for a new integration test.

Reach for a real `subprocess.run` only when the test depends on something a
shared interpreter cannot give it:

- **Import isolation** — the `--no-custom-rules` tests prove a rule file on
  disk did or did not get imported. In-process they would execute an
  arbitrary rule inside the test worker, and `sys.modules` could mask a
  repeat import and make the negative case pass vacuously.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add stbenjam/skillsaw/.cursor/rules/testing.mdc@sha256:2b2164b556f5fd8a

The line at the top of this page pins the label git:20260828.2b62c03, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_5hxyrkyxsbdbhlvu.svg)](https://markdownregistry.com/a/art_5hxyrkyxsbdbhlvu)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between May 13, 2026 and Aug 28, 2026, about one every 53 days.

versioncommittedcommitsizeaudit
git:20260828.2b62c03 latest2026-08-28 2b62c03 2,962 BA view · diff
git:20260707.a832c0b2026-07-07 a832c0b 1,405 BA view · diff
git:20260513.96352b82026-05-13 96352b8 1,231 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2962 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

stbenjam/skillsaw · 69 stars · license Apache-2.0 · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_5hxyrkyxsbdbhlvu
GET https://markdownregistry.com/api/v1/resolve?ref=stbenjam/skillsaw/.cursor/rules/testing.mdc
GET https://markdownregistry.com/api/v1/blob/2b2164b556f5fd8ae7f22a98b62a22b08bf364d1d69adce39b1eeb44811b324a

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: Cursor rules vs AGENTS.md · which agent file does what.

More from stbenjam/skillsaw

skillsaw-create-plugin SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-create-plugin/SKILL.md · Create a skillsaw rule plugin — a pip-installable Python package that adds custom lint rules to skillsaw. Walks through…
v1.0 · audit A · 69 stars
skillsaw-ecosystem-scout SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-ecosystem-scout/SKILL.md · Survey the AI coding assistant and agentic tool ecosystem, assess skillsaw's competitive position, identify emerging…
v1.0 · audit A · 69 stars
skillsaw-fix SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-fix/SKILL.md · Fix skillsaw lint violations — apply deterministic autofixes, then resolve the remaining violations with targeted edits…
v1.0 · audit A · 69 stars
skillsaw-issue-solver SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-issue-solver/SKILL.md · Pick up open GitHub issues from collaborators and create PRs to solve them. Use when triaging and resolving reported…
v1.0 · audit A · 69 stars
skillsaw-issue-triage SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-issue-triage/SKILL.md · Triage a GitHub issue filed against skillsaw — classify it (bug, feature, docs, question, other), verify its claims…
v1.0 · audit A · 69 stars
skillsaw-issue SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-issue/SKILL.md · Use when skillsaw reports a likely false positive, misses an edge case, behaves incorrectly, or needs an RFE. Gather a…
v1.0 · audit A · 69 stars
skillsaw-lint SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-lint/SKILL.md · Use when modifying agentic contextual building blocks like skills (SKILL.md), slash commands, agents, hooks, plugins…
v1.0 · audit A · 69 stars
skillsaw-maintenance SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-maintenance/SKILL.md · Analyze upstream specs (agentskills.io, Claude Code plugin/marketplace format, OpenAI Codex plugins/marketplace…
v2.0 · audit A · 69 stars
skillsaw-onboard SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-onboard/SKILL.md · Onboard a repository to skillsaw — run the linter, triage the findings by rule, apply autofixes, manually fix what…
v1.0 · audit A · 69 stars
skillsaw-pr-followup SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-pr-followup/SKILL.md · Follow up on open PRs in skillsaw — fix failing CI, address reviewer feedback, push updates, and validate backward…
v1.0 · audit A · 69 stars
skillsaw-release-ready SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-release-ready/SKILL.md · Audit skillsaw for release readiness — test new rules against real repositories, audit core architectural dimensions…
v1.0 · audit A · 69 stars
skillsaw-release SKILL.md skill
stbenjam/skillsaw · .agents/skills/skillsaw-release/SKILL.md · Bump the version, generate release notes, and publish a new skillsaw release to PyPI. Use when cutting a new release.
v1.0 · audit A · 69 stars

Every file in stbenjam/skillsaw

Other files named testing

testing SKILL.md skill
garrytan/gbrain · skills/testing/SKILL.md · Skill validation framework PLUS daily test-suite health and regression intelligence. Validates skill conformance…
v1.1.0 · audit A · 31,587 stars
testing SKILL.md skill
davepoon/buildwithclaude · plugins/cc-best/skills/testing/SKILL.md · Testing strategies and methodologies including TDD, E2E testing, and multi-framework support
git:20260307.6b5172a · audit A · 3,724 stars
testing SKILL.md skill
live-codes/livecodes · .agents/skills/livecodes/testing/SKILL.md · Write and run automated tests with Jest and Testing Library in the browser. Import code from script editor, use watch…
git:20260914.daf8be4 · audit A · 1,525 stars
testing SKILL.md skill
team-commonly/commonly · fleet-skills/testing/SKILL.md · Testing and code quality context for Jest, React Testing Library, ESLint, and test patterns. Use when writing tests or…
git:20261031.de1e176 · audit A · 1,391 stars
testing Cursor rule
thedaviddias/llms-txt-hub · .cursor/rules/testing.mdc · Rules for writing Jest tests in TypeScript
git:20250301.62fad3c · audit A · 926 stars
testing SKILL.md skill
rsmdt/the-startup · plugins/team/skills/development/testing/SKILL.md · Writing effective tests and running them successfully. Covers layer-specific mocking rules, test design principles…
git:20260225.c94494b · audit A · 577 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · targets/codex/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async; Use
git:20260724.daea640 · audit A · 573 stars
testing SKILL.md skill
oliver-kriska/claude-elixir-phoenix · plugins/elixir-phoenix/skills/testing/SKILL.md · Write or repair Elixir tests with ExUnit, sandbox isolation, async reliability, Mox, ExMachina, and LiveViewTest. Use…
git:20260724.daea640 · audit A · 573 stars

Browse by kind, by grade A, or by owner.