
Spring boot testing
Guides an agent to pick and write Spring Boot tests: slices, Testcontainers, MockitoBean
Spring boot testing is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 41.7K
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Spring boot testing
This skill helps an agent test Spring Boot applications by first checking the project's Spring Boot version and test dependencies, then choosing the narrowest suitable test slice for the code under test. It covers web-layer tests with MockMvc, data-layer tests against real databases through Testcontainers and @ServiceConnection, REST client tests, JSON mapping tests, and full-context integration tests run through Failsafe.
The guidance includes coding conventions: AssertJ-style assertions, helper methods for shared setup, @DisplayName for readable test intent, and an ordering of main scenario, other paths, then error cases. It also suggests refactoring when a method needs more than a handful of test cases, and sets a Jacoco-based coverage target of around 80 percent with a focus on business-critical paths.
The skill is written for Spring Boot 4 with notes for Boot 3 covering mock bean annotations, JUnit versions and modular starters. It expects a Maven or Java project and Java source code to work from.
When your agent uses it
Expert Spring Boot testing specialist that selects the best testing techniques for your situation: test slices, Testcontainers with @ServiceConnection, Failsafe integration tests, MockitoBean, JUnit and AssertJ. Written for Spring Boot 4 with notes for Boot 3.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 16 files (80 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
Copy the skill folder to ~/.claude/skills/spring-boot-testing to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spring-boot-testing &&
cp -R "$tmp/skills/spring-boot-testing" ~/.claude/skills/spring-boot-testing &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/spring-boot-testing inside it instead.
Copy the skill folder to ~/.agents/skills/spring-boot-testing to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spring-boot-testing &&
cp -R "$tmp/skills/spring-boot-testing" ~/.agents/skills/spring-boot-testing &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/spring-boot-testing inside it instead.
Copy the skill folder to ~/.cursor/skills/spring-boot-testing to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spring-boot-testing &&
cp -R "$tmp/skills/spring-boot-testing" ~/.cursor/skills/spring-boot-testing &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/spring-boot-testing inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/github/awesome-copilot.git --path skills/spring-boot-testingOr copy the folder to ~/.gemini/skills/spring-boot-testing yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/spring-boot-testing:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/github/awesome-copilot.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spring-boot-testing &&
cp -R "$tmp/skills/spring-boot-testing" ~/.copilot/skills/spring-boot-testing &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/spring-boot-testing inside it instead.
Get the folder:
git clone --depth 1 https://github.com/github/awesome-copilot.gitThen copy awesome-copilot/skills/spring-boot-testing into your agent's skills folder as spring-boot-testing. Agents that support SKILL.md read one folder per skill.
What it does
- Version-aware setup
- Checks the Spring Boot version and test dependencies before writing tests, with Boot 3 and Boot 4 differences noted.
- Test slice selection
- Maps scenarios such as controllers, repositories, REST clients and JSON to the matching Spring Boot test slice.
- Testcontainers integration
- Shows how to run database tests against real containers using @ServiceConnection.
- Failsafe integration tests
- Explains how to bind Failsafe so *IT classes run under the verify goal.
- Mocking and assertions
- Covers MockitoBean usage along with AssertJ collection and scalar assertion references.
- Coverage and test structure
- Sets an 80 percent coverage target with Jacoco and an ordering for main, edge and error tests.
Good for
- Write a controller test with MockMvc for a REST endpoint
- Add a repository test that runs against a real PostgreSQL container
- Set up Failsafe so integration tests run during mvn verify
- Migrate existing tests from Spring Boot 3 mock annotations to Boot 4
- Test an external API client using a mocked REST server
Spring boot testing FAQ
Which Spring Boot versions does Spring boot testing cover?
Examples target Spring Boot 4, and the skill includes compatibility notes for Spring Boot 3.
Does Spring boot testing run any scripts or tools itself?
No scripts are included; it guides the agent through writing tests and uses Maven commands such as ./mvnw verify.
Does Spring boot testing upgrade dependencies?
The skill says to read the project's versions and not upgrade them implicitly.
How do I install Spring boot testing in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/spring-boot-testing to use it in all your projects, or to .claude/skills/spring-boot-testing in one project.
Does Spring boot testing run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Spring boot testing?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Spring boot testing?
The closest alternatives to Spring boot testing are Java springboot, Java junit, Spring security, Junit 5 skill and Kotlin springboot.
Where this comes from
- Description: from the skill's own SKILL.md.
More from github/awesome-copilot

A DevOps checklist for deploys, Docker, Kubernetes, CI/CD, rollback and mobile releases
- Open source
- 41.7K GitHub stars
- Cloud and infrastructure

Guides Qdrant scaling when data outgrows a node: tenants, time windows or sharding
- Open source
- 41.7K GitHub stars
- Knowledge and memory

Explains Qdrant's per-shard query subsampling for large limits across many auto-shards
- Open source
- 41.7K GitHub stars
- Knowledge and memory

Lets an agent build and edit Power Apps canvas apps through FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools

Ground rules for an agent editing Power Apps canvas apps through FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools

Lets an agent inspect, audit and diagnose Power Apps canvas apps via FlowStudio MCP
- Open source
- 41.7K GitHub stars
- Developer tools


