test-coverage

test-coverage is a command for GitHub Copilot from saajunaid/caddis-plugin. It costs 14 tokens per session (441 once invoked), scanned A, original, MIT.

A test coverage analyser that finds gaps in the tests and generates tests intended to reach at least 80% coverage. Test coverage measures how much of the code is exercised by tests.

In plain words
What is it for?
Use it to review coverage gaps and create additional tests for untested code.
Why use it?
It helps identify code paths that existing tests do not check.

Command for GitHub Copilot

Written for GitHub Copilot: a Copilot chat mode or prompt.

Good fit Use it to review coverage gaps and create additional tests for untested code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/saajunaid/caddis-plugin/test-coverage
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/saajunaid/caddis-plugin

Made for: GitHub Copilot.

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-coverage

README.md
[![agentmods](https://agentmods.dev/badge/commands/saajunaid/caddis-plugin/test-coverage/github.svg)](https://agentmods.dev/commands/saajunaid/caddis-plugin/test-coverage)
Your own site
<a href="https://agentmods.dev/commands/saajunaid/caddis-plugin/test-coverage"><img src="https://agentmods.dev/badge/commands/saajunaid/caddis-plugin/test-coverage/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 test-coverage

Your own site · 80×15
<a href="https://agentmods.dev/commands/saajunaid/caddis-plugin/test-coverage"><img src="https://agentmods.dev/badge/commands/saajunaid/caddis-plugin/test-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 The whole file, excluding the scripts and references it only reads on demand.
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.00014 $0.00441
Opus 5.5 $0.00006 $0.00176
Sonnet 5.5 $0.00003 $0.00088
Haiku 4.5 $0.00001 $0.00044

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

Security

Grade A, and why

test-coverage 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 1mo 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.

.github/prompts/test-coverage.prompt.md · 74 lines

What it actually says

Test Coverage Improvement

Analyze the project's test coverage, identify gaps, and generate tests to bring coverage above 80%.

Instructions

Step 1: Run Coverage Analysis

Run tests with coverage reporting using the project's test framework:

# JavaScript/TypeScript
npm test -- --coverage

# Python
pytest --cov --cov-report=term-missing

# Or the project's equivalent command

Step 2: Identify Gaps

Review the coverage report and find:

  • Files below 80% line coverage
  • Untested functions or methods
  • Uncovered branches (if/else paths, error handlers, edge cases)

Prioritize by impact:

  1. Critical business logic with low coverage
  2. Error handling paths that are never tested
  3. Utility functions used across the codebase
  4. Edge cases — null, empty, boundary values

Step 3: Generate Tests

For each under-covered file, write tests targeting the gaps:

  • Unit tests for individual functions (happy path + error cases)
  • Integration tests for API endpoints or service interactions
  • Edge case tests for boundary conditions

Follow the project's existing test conventions (file naming, structure, assertions, mocking patterns).

Step 4: Verify

Run coverage again and confirm improvement. Repeat steps 2-3 if still below target.

Step 5: Report

Show before/after metrics:

## Coverage Report

| File | Before | After | Change |
|------|--------|-------|--------|
| src/service.ts | 45% | 87% | +42% |
| src/utils.ts | 60% | 95% | +35% |

Overall: 52% → 83% (+31%)

Focus Areas

  • Happy path scenarios
  • Error handling and exception paths
  • Edge cases: null, undefined, empty strings, empty arrays
  • Boundary conditions: zero, negative, max values
  • Async error paths and timeout handling
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. 1mo ago First seen · 74 lines · 14 tokens per session scan A 5f9239914725

Subscribe to this mod's changes

test-coverage is a command published in the GitHub repository saajunaid/caddis-plugin (0 stars, last pushed today), licensed MIT. It adds 14 tokens to every session and 441 once invoked, about $0.0001 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-09-09.