Spring Test Pyramid

Spring Test Pyramid is a skill for Claude Code, Codex from niels-emmer/myace. It costs 21 tokens per session (295 once invoked), scanned A, original, MIT.

A guide to testing Spring Boot applications with unit tests, database integration tests, controller tests, and limited full-application tests.

In plain words
What is it for?
Use it when choosing JUnit, Mockito, @DataJpaTest, @WebMvcTest, or @SpringBootTest for different parts of a Spring application.
Why use it?
It helps test business logic quickly while reserving slower tests for database behavior, HTTP handling, and critical complete flows.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for aider. Also seen: mentions Codex; built for aider; mentions OpenCode.

Good fit Use it when choosing JUnit, Mockito, @DataJpaTest, @WebMvcTest, or @SpringBootTest for different parts of a Spring application.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/niels-emmer/myace/test-pyramid-spring
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.

Any agent
npx skills add niels-emmer/myace --skill test-pyramid-spring
Clone the repo
git clone --depth 1 https://github.com/niels-emmer/myace

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 Spring Test Pyramid

README.md
[![agentmods](https://agentmods.dev/badge/skills/niels-emmer/myace/test-pyramid-spring/github.svg)](https://agentmods.dev/skills/niels-emmer/myace/test-pyramid-spring)
Your own site
<a href="https://agentmods.dev/skills/niels-emmer/myace/test-pyramid-spring"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/test-pyramid-spring/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 Spring Test Pyramid

Your own site · 80×15
<a href="https://agentmods.dev/skills/niels-emmer/myace/test-pyramid-spring"><img src="https://agentmods.dev/badge/skills/niels-emmer/myace/test-pyramid-spring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 295 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.00021 $0.00295
Opus 5 $0.00010 $0.00148
Sonnet 5 $0.00004 $0.00059
Haiku 4.5 $0.00002 $0.00030

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

Security

Grade A, and why

Spring Test Pyramid 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 6d 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.

collections/additional/java-spring/skills/test-pyramid-spring/SKILL.md · 24 lines

What it actually says

Purpose

Test Spring Boot applications at the right level — fast unit tests for logic, slower integration tests for data access.

Checklist

  • Unit tests (JUnit + Mockito): test service-layer logic in isolation. Mock repository and external dependencies. Fast — run in milliseconds.
  • Repository integration tests (@DataJpaTest): test custom queries, entity mappings, and constraint enforcement against a real or embedded database.
  • Controller slice tests (@WebMvcTest): test request mapping, validation, and response serialization. Mock service layer.
  • Full context tests (@SpringBootTest): use sparingly for critical end-to-end paths only. Slow — don't use for every test.
  • Coverage: every service method has a unit test. Every custom repository query has an integration test. Every controller endpoint has a slice test for error paths.

Expected output

A test suite where unit tests cover business logic, integration tests cover data access, and full-context tests cover only critical paths.

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. 6d ago First seen · 24 lines · 21 tokens per session scan A dcf9e96e409a

Subscribe to this mod's changes

Spring Test Pyramid is a skill published in the GitHub repository niels-emmer/myace (1 stars, last pushed 3d ago), licensed MIT. It adds 21 tokens to every session and 295 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-09-03.

Related

Other skills, from other repositories

loom-test-strategy

Test strategy guidance covering pyramid design, coverage, test categorization, flaky tests, infrastructure, and risk-based prioritization.

cosmix/loom · 29 tokens

loom-testing

Test implementation across unit, integration, e2e, security, infrastructure, data pipeline, and ML domains.

cosmix/loom · 25 tokens

continuous-testing

Continuous test-driven development loop — after every code change, builds the project, starts the server, and runs Unit Tests, Integration Tests, and System Tests. Applies on top of microprofile-server skill. Use during development when you want full verification after each change. Triggers on "continuous testing"…

AdamBien/airails · 84 tokens

nestjs-testing-expert

NestJS testing mechanics with Jest — building testing modules, mocking providers and repositories, writing service and controller specs, and driving HTTP end-to-end tests through the real application. Use for any test touching a NestJS service, controller, guard, module, or API endpoint, including test-module setup…

shipshitdev/skills · 77 tokens

nestjs-testing

NestJS unit and E2E testing — Test.createTestingModule(), mocking providers with jest, supertest for HTTP assertions. Use when writing tests for NestJS services, controllers, or full application flows. Apply whenever user instantiates NestJS services with new ServiceName() instead of Test.createTestingModule(), uses a…

shipengqi/skills · 110 tokens

testing-setup

Analyze and create a testing strategy for native Android apps - install testing libraries, set up test infrastructure, create harnesses for unit tests, UI tests, screenshot tests, and end-to-end tests.

android/skills · 43 tokens