test

A command for running a project’s tests and addressing common problems. It detects the likely test runner from the project files and reports the results.

In plain words
What is it for?
Use it to execute the test suite, inspect failures, fix common issues when appropriate, and receive a summary of the test count and outcome.
Why use it?
It avoids guessing which test command to use across Python, JavaScript, Rust, Go, Java, Ruby, or PHP projects. It also provides a repeatable sequence for analyzing failures and summarizing the run.

Command for Claude Code

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.

agentmods
npx agentmods add commands/helmi/claude-simone/test
Clone the repo
git clone --depth 1 https://github.com/Helmi/claude-simone

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00751
Opus 5 $0.00000 $0.00376
Sonnet 5 $0.00000 $0.00150
Haiku 4.5 $0.00000 $0.00075

Measured 2d ago against content hash 82ae7e6201b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • test — 100% identical, 0 lines differ
legacy/.claude/commands/simone/test.md · 124 lines

How it starts

The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run tests and fix common issues

Follow these instructions from top to bottom.

Create a TODO with EXACTLY these 4 items

  1. Execute test suite
  2. Analyze results and identify issues
  3. Fix common problems if found
  4. Provide test summary

1 · Execute test suite

First, detect the project's test runner

  1. Python projects:

    • If pyproject.toml exists with [tool.poetry]: Try poetry run pytest
    • If setup.py or requirements.txt: Try pytest or python -m pytest
    • If custom test script exists (e.g., run_tests.py, run_dev.py): Use that
    • Add common flags: --tb=short for pytest
  2. JavaScript/TypeScript projects:

    • If package.json exists: Check "scripts" section for "test" command
    • Common: npm test, npm run test, yarn test, pnpm test
    • Framework specific: jest, vitest, mocha
  3. Other languages:

    • Rust: cargo test
    • Go: go test ./...
    • Java: mvn test or gradle test
    • Ruby: bundle exec rspec or rake test
    • PHP: composer test or phpunit

Execute the detected test command

  • RUN the appropriate test command
  • CAPTURE full output including any errors
  • NOTE execution time and test counts

If no test runner is found: Report this to the user and ask for the correct test command.

2 · Analyze results and identify issues

Check for common issues in this order:

Language-specific issues

Python:

  • Missing init.py files (import errors, tests not discovered)
  • Import path problems
  • Fixture issues (pytest)
  • Virtual environment problems

JavaScript/TypeScript:

  • Module resolution errors
  • Missing dependencies in node_modules
  • Jest/Vitest configuration issues
  • TypeScript compilation errors

Common across languages:

  • Environment variable issues (missing config)
  • Database/external service connection errors
  • File path problems (absolute vs relative)
  • Permission issues

3 · Fix common problems if found

ONLY fix these specific issues automatically:**

Read the full file on GitHub · 124 lines

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. 2d ago First seen · 124 lines · 0 tokens per session scan A 82ae7e6201b2

Subscribe to this mod's changes

test is a command published in the GitHub repository Helmi/claude-simone (558 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 751 tokens. 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-30.