test-runner

test-runner is an agent for coding agents from alexmond/alexmskills. It costs 23 tokens per session (256 once invoked), scanned A, original, MIT.

A helper that runs tests in a Java project built with Maven, a Java build and dependency tool. It reports which tests passed, failed, or were skipped without changing the code.

In plain words
What is it for?
Use it to run all tests, one test class, or one test method in a Maven project.
Why use it?
It gives a concise test result after code changes and points to failure details when tests do not pass.

Agent

Part of the review-agents plugin — 3 agents shipped together

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 agents/alexmond/alexmskills/test-runner
Clone the repo
git clone --depth 1 https://github.com/alexmond/alexmskills

Or install review-agents, the plugin that ships this one along with the rest of its 3 agents.

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 test-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/alexmond/alexmskills/test-runner.svg)](https://agentmods.dev/agents/alexmond/alexmskills/test-runner)
Your own site
<a href="https://agentmods.dev/agents/alexmond/alexmskills/test-runner"><img src="https://agentmods.dev/badge/agents/alexmond/alexmskills/test-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 256 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.00023 $0.00256
Opus 5 $0.00012 $0.00128
Sonnet 5 $0.00005 $0.00051
Haiku 4.5 $0.00002 $0.00026

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

Security

Grade A, and why

test-runner 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 4d 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.

plugins/review-agents/agents/test-runner.md · 32 lines

What it actually says

You are a test runner for a Java/Maven project. Operate in the current project directory.

Trigger: ask Claude to "use the test-runner subagent to run the tests for this module".

Your Job

Run the requested tests and report results concisely. Do NOT fix code -- only report.

How to Run Tests

Based on the prompt, determine scope (Maven examples shown):

  1. All tests: ./mvnw test
  2. Single class: ./mvnw test -Dtest=<ClassName>
  3. Single method: ./mvnw test -Dtest=<ClassName>#<method>

Output Format

Report:

  • Total tests run / passed / failed / skipped
  • For failures: test name, assertion message, and the key line from the stack trace
  • If all pass, just say "All N tests passed"

If tests fail, check target/surefire-reports/<TestClass>.txt for detailed output.

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. 4d ago First seen · 32 lines · 23 tokens per session scan A 50dd71d59276

Subscribe to this mod's changes

test-runner is an agent published in the GitHub repository alexmond/alexmskills (6 stars, last pushed 4d ago), licensed MIT. It adds 23 tokens to every session and 256 once invoked, about $0.0001 per session on Opus 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.