tests-run-file

tests-run-file is a skill for Claude Code, Codex from deephaven/deephaven-mcp. It costs 25 tokens per session (175 once invoked), scanned A, original, Apache-2.0.

A workflow for running the tests in one Python test file with code coverage. Code coverage shows which parts of the source code the tests exercise.

In plain words
What is it for?
Use it when checking whether a particular source file is fully covered by its matching test file, using the project's existing pytest coverage settings.
Why use it?
It gives a reliable coverage result for one source file instead of letting tests from unrelated files hide untested code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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 skills/deephaven/deephaven-mcp/tests-run-file
Any agent
npx skills add deephaven/deephaven-mcp --skill tests-run-file
Clone the repo
git clone --depth 1 https://github.com/deephaven/deephaven-mcp

Made for: Claude Code, Codex.

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 tests-run-file

README.md
[![agentmods](https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/tests-run-file.svg)](https://agentmods.dev/skills/deephaven/deephaven-mcp/tests-run-file)
Your own site
<a href="https://agentmods.dev/skills/deephaven/deephaven-mcp/tests-run-file"><img src="https://agentmods.dev/badge/skills/deephaven/deephaven-mcp/tests-run-file.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 175 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.1 $0.00025 $0.00175
Opus 5 $0.00013 $0.00088
Sonnet 5 $0.00005 $0.00035
Haiku 4.5 $0.00003 $0.00017

Measured 5d ago against content hash a8ccd016fe13, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tests-run-file 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 5d 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.

.agents/skills/tests-run-file/SKILL.md · 17 lines

What it actually says

Run a single test file:

uv run pytest tests/path/to/test_<file>.py

pytest is pre-configured for coverage in pyproject.toml. Do not add --cov= or --cov-report= flags — they are already set; overriding them silently disables the project's coverage configuration.

Per-file runs are required when assessing whether a single source file is fully covered by its own test file. The full-suite run (tests-run) cannot answer that question because coverage from unrelated test files masks gaps.

For integration tests (test_<file>_integration.py, marked @pytest.mark.integration), see integration-tests-run — they have separate invocation rules.

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. 5d ago First seen · 17 lines · 25 tokens per session scan A a8ccd016fe13

Subscribe to this mod's changes

tests-run-file is a skill published in the GitHub repository deephaven/deephaven-mcp (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 175 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.

Related

Other skills, from other repositories