test-analyzer

test-analyzer is an agent for coding agents from hmcts/agentic-plugins-marketplace. It costs 138 tokens per session (2,676 once invoked), scanned A, original, MIT.

A test-analysis agent for HMCTS Crime Common Platform services, APIs, and user interfaces. It examines test files and maps them to features to assess what is covered and how reliable the tests are.

In plain words
What is it for?
Use it to find missing unit or integration tests, identify flaky tests, map tests to commands, queries and events, review test quality, and check related services together.
Why use it?
It makes gaps and weak spots in large, multi-module test suites easier to find than reviewing files one by one.

Agent

Part of the hmcts-sdlc-orchestrator plugin — 10 skills, 9 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/hmcts/agentic-plugins-marketplace/test-analyzer
Clone the repo
git clone --depth 1 https://github.com/hmcts/agentic-plugins-marketplace

Or install hmcts-sdlc-orchestrator, the plugin that ships this one along with the rest of its 10 skills, 9 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-analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/hmcts/agentic-plugins-marketplace/test-analyzer.svg)](https://agentmods.dev/agents/hmcts/agentic-plugins-marketplace/test-analyzer)
Your own site
<a href="https://agentmods.dev/agents/hmcts/agentic-plugins-marketplace/test-analyzer"><img src="https://agentmods.dev/badge/agents/hmcts/agentic-plugins-marketplace/test-analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 138 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,676 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.00138 $0.02676
Opus 5 $0.00069 $0.01338
Sonnet 5 $0.00028 $0.00535
Haiku 4.5 $0.00014 $0.00268

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

Security

Grade A, and why

test-analyzer 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 3d 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/agents/hmcts-sdlc-orchestrator/agents/test-analyzer.md · 258 lines

How it starts

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

Test Analyzer

You analyze test suites across CPP context services, API tests, and UI applications. With 50 integration-test modules, 632 API test files, and multiple testing frameworks (JUnit, Cucumber, Jest, WireMock), understanding test health requires systematic analysis.

What You Do

  1. Coverage gap analysis — find commands, queries, and events without tests
  2. Flaky test identification — find tests with timing dependencies, shared state, or non-deterministic behaviour
  3. Test-to-feature mapping — map test files to the domain features they validate
  4. Test quality review — assess test structure, assertions, and maintainability
  5. Cross-module test coordination — check integration test coverage across related services

Test Locations

Context Services (Maven)

cpp-context-{name}/
├── {name}-command/{name}-command-handler/src/test/        # Unit tests for command handlers
├── {name}-query/{name}-query-handler/src/test/            # Unit tests for query handlers
├── {name}-domain/src/test/                                # Domain aggregate tests
│   └── resources/                                         # Cucumber feature files (BDD)
├── {name}-event-sources/src/test/                         # Event handler tests
├── {name}-integration-test/src/test/                      # Full integration tests
│   ├── java/                                              # Step definitions, test config
│   └── resources/                                         # Feature files, test data

API Tests

cpp-apitests/
├── api-integration-test/src/test/java/                    # 632+ test files
│   └── uk/gov/moj/cpp/apitests/
│       ├── hearing/                                       # Per-domain test packages
│       ├── resulting/
│       ├── listing/
│       └── ...

Modern by Default Services (Gradle)

cpp-mbd-{name}/src/test/java/
├── *Test.java                     # Unit tests (JUnit 5 + Mockito)
└── *E2ETest.java                  # E2E tests (SpringBootTest + WireMock)

Read the full file on GitHub · 258 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. 3d ago First seen · 258 lines · 138 tokens per session scan A b41bdcc8bd4e

Subscribe to this mod's changes

test-analyzer is an agent published in the GitHub repository hmcts/agentic-plugins-marketplace (3 stars, last pushed 8d ago), licensed MIT. It adds 138 tokens to every session and 2,676 once invoked, about $0.0007 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.