add-test-pyramid

Orchestrate seven test layers on Spring Boot 4 Gradle Kotlin projects.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dprice-dev/claude-java-skills --skill add-test-pyramid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-test-pyramid
Source: https://github.com/dprice-dev/claude-java-skills/tree/main/.claude/skills/add-test-pyramid
Command: npx skills add https://github.com/dprice-dev/claude-java-skills --skill add-test-pyramid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates the slow, error-prone process of manually wiring a complete multi-layer test stack in a Spring Boot 4 project by coordinating unit, component, e2e, acceptance, contract, mutation, and benchmark setup in one guided pass.

Core Features & Use Cases

  • Full test pyramid orchestration: Runs layer-by-layer skills in dependency order to create unit, component, and e2e foundations, then adds acceptance, contract, mutation, and benchmarks.
  • Spec-first quality tooling: Adds Pact provider verification for contract testing and PIT mutation testing to harden coverage quality, plus JMH for performance/benchmark scaffolding.
  • Guardrails against duplicates: Includes explicit guidance not to use this orchestrator on projects scaffolded with the enterprise profile, reducing risk of duplicate layers/tasks in the build.

Quick Start

Tell the assistant to add the complete test pyramid to your Spring Boot 4 project by running this skill for a standard-profile scaffolded project so that all seven layers and tools are configured consistently.

Frequently Asked Questions about add-test-pyramid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a complete test pyramid in a Spring Boot 4 project?

To set up a complete test pyramid in Spring Boot 4, you orchestrate unit, component, e2e, acceptance, contract, mutation, and benchmark layers in dependency order. This eliminates manual wiring by configuring all seven layers and quality gates consistently in one pass.

What is the best way to add Pact contract testing and PIT mutation testing to a Gradle Kotlin DSL project?

The best way to add Pact contract testing and PIT mutation testing to a Gradle Kotlin DSL project is using an orchestrated test pyramid setup. It applies spec-first quality tooling and mutation testing to harden coverage quality alongside standard unit and component layers.

Does the Spring Boot 4 test pyramid setup work with enterprise profile scaffolds?

No, the Spring Boot 4 test pyramid setup does not work with enterprise profile scaffolds. It includes explicit guardrails against duplicates and should only be applied to new or bare Initializr scaffolds using a standard profile without existing full multi-layer testing.

What Java toolchain languageVersion is required for automating Spring Boot 4 multi-layer test setup?

Automating Spring Boot 4 multi-layer test setup requires Java toolchain languageVersion 25 and Gradle Kotlin DSL. The project must use a standard-profile Initializr scaffold to avoid duplicate layers or tasks in the build when applying the full pyramid.

How do I add JMH performance benchmarks to a Spring Boot application?

To add JMH performance benchmarks to a Spring Boot application, you run a full test pyramid orchestration skill that includes benchmark scaffolding. This configures JMH alongside unit, component, e2e, and mutation testing layers in a single guided pass.

Why use an orchestrated test pyramid setup instead of individual testing layer configurations?

You use an orchestrated test pyramid setup instead of individual configurations to get the full multi-layer stack consistently in dependency order. It prevents slow, error-prone manual wiring by automating unit, component, e2e, acceptance, contract, mutation, and benchmark setup together.