skills sourced live from GitHub · all skills listed are free · each skill is provided under its author's license.
home / Testing & QA / Spring Boot Testing Skill by @github
The skill is the skills/spring-boot-testing folder inside that repository. Copy it into the folder your agent loads skills from; check your agent's documentation for where that is.
Chooses the right testing technique for Spring Boot: test slices, Testcontainers, integration tests and mocking.
Detects the project's Boot version first, then maps situations to slices and tools, covering assertions and test data. Examples target Boot 4 with notes for Boot 3.
The original SKILL.md is organised into these sections:
Written and maintained by @github. It is published under the MIT license, which allows reuse with attribution. See the author profile. SkillDirectory does not claim authorship: this page adds our own review and links back to the original, and the skill's text belongs to its author.
# Spring Boot Testing This skill provides expert guidance for testing Spring Boot applications with modern patterns and best practices. Examples target Spring Boot 4; see the compatibility note below for Boot 3. ## Compatibility: detect first Read the project's Spring Boot version and test dependencies before writing tests, and do not upgrade them implicitly. | | Spring Boot 3.x | Spring Boot 4.x | |--|-----------------|-----------------| | JUnit | 5 (Jupiter) | 6 by default (same `org.junit.jupiter.api` annotations; JUnit 5 tests keep working) | | Mock beans | `@MockitoBean` / `@MockitoSpyBean` from 3.4 (Spring Framework 6.2); `@MockBean` / `@SpyBean` are deprecated | `@MockitoBean` replaces `@MockBean` (do not use the old ones) | | Test starters | `spring-boot-starter-test` covers everything | modular: add `spring-boot-starter-webmvc-test`, `spring-boot-starter-data-jpa-test`, ... | …
Excerpt only, quoted from the author's repository. Open the repository for the complete file.