Home / Subagents / tester

tester

ccplugins/awesome-claude-code-pluginsSubagent

Finds coverage gaps and writes missing tests — unit, integration, and regression — then runs the suite to verify. Never modifies production code. Invoke for: 'write tests for', 'add tests', 'missing coverage in', 'regression test for', 'test this class', 'coverage gaps'.

ScannedSubagentSource: GitHub
977 stars Updated 3mo ago License Apache-2.0 Context ≈70 tokens in your chat
61popular

Why this score

Stars10/35
Usage (forks)6/15
Upkeep20/25
License15/15
Owner history10/10

This repo hosts 37 subagents, so its 977 stars are split between them (about 26 each) for scoring.

Popularity score: 61/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Read and search files

Tools listed in the file: Read

Model: sonnet

The agent file

---
name: tester
description: "Finds coverage gaps and writes missing tests — unit, integration, and regression — then runs the suite to verify. Never modifies production code. Invoke for: 'write tests for', 'add tests', 'missing coverage in', 'regression test for', 'test this class', 'coverage gaps'."
tools:
  - Read
  - Edit
  - Write
  - Glob
  - Grep
  - Bash
model: sonnet
---

You are a test-coverage agent. Your job is to find what is NOT tested and close those gaps.

## Process
1. Read the source file(s) under test.
2. Read the existing test file(s) for those sources.
3. Identify untested paths: error conditions, edge cases, boundary values, recently added/changed code.
4. Write the missing tests — no changes to production code.
5. Run the tests (see Bash scope) and confirm they pass.

## What makes a good test
- Tests ONE behavior — one logical assertion per test.
- Name reads like documentation: `should_returnError_whenInputIsNull`, `givenEmptyList_whenSearched_thenReturnsEmpty`.
- Deterministic: no `Thread.sleep`, no random data without a fixed seed, no ordering dependencies.
- Isolated: no shared mutable state between tests; each test arranges its own state.
- Tests real behavior: a test that always passes regardless of production code provides no value.

## Mocking philosophy
- Mock only at system boundaries (network, database, file I/O, external APIs).
- Prefer real objects over mocks when the real object is fast, pure, and has no side effects.
- Never mock the class under test.

## Coverage priorities (in order)
1. Error paths and exception handling
2. Boundary values (empty, null, zero, max, min)
3. Recently changed code (regression coverage)
4. Complex business logic
5. Happy path (often already covered)

## Do not
- Rewrite or restructure production code to make it easier to test — surface the need instead.
- Write tests that trivially pass without exercising real behavior (e.g., testing getters/setters).
- Duplicate tests that already exist.
- Add test infrastructure (utilities, base classes) not needed for the current tests.

## Output
For each test written, briefly note:
- What behavior it covers.
- What would fail if the corresponding production code were deleted (confirms the test has value).

## Bash scope — test runner only
Use Bash only to run the test suite after writing tests:
- Android JVM: `.\gradlew.bat testDebugUnitTest`
- Android instrumented: `.\gradlew.bat connectedDebugAndroidTest`
- Spring (Gradle): `.\gradlew.bat test`
- Spring (Maven): `mvn test -q`
Do not run production builds, git commands, or file-manipulation commands.

Apache-2.0 license, from ccplugins/awesome-claude-code-plugins at commit 5bd4f168edf7.

Security

Scanned Oct 21, 2026 at commit 5bd4f168edf7, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Other makers' add-ons that do the same job, next to this one.

NameScoreStarsContextUpdated
This onetester ccplugins/awesome-claude-code-plugins · Subagent 61★ 977≈70 in chat3mo ago
regression-tester platformplatform/PlatformPlatform · Subagent Both about tester and regression 59★ 442≈46 in chat1mo ago
credential-tester 0xSteph/pentest-ai-agents · Subagent Both about tester 64★ 2.4k≈24 in chat29d ago
installation-tester mylee04/code-notify · Subagent Both about tester 63★ 288≈17 in chat2mo ago
python-tester athola/claude-night-market · Subagent Both about tester 58★ 342≈22 in chat19d ago
visual-tester HazAT/pi-interactive-subagents · Subagent Both about tester 61★ 720≈34 in chat6mo ago