spring-boot-testing

Installation
SKILL.md

When to Use

  • Writing tests for Spring Boot applications
  • Need help choosing the right test slice
  • Setting up test infrastructure
  • Working with MockMvc, TestRestTemplate, or RestTestClient
  • Writing integration tests with Testcontainers

Instructions

Core Principles

  1. Test Pyramid: Unit (fast) > Slice (focused) > Integration (complete)
  2. Right Tool: Use the narrowest slice that gives you confidence
  3. AssertJ Style: Fluent, readable assertions over verbose matchers
  4. Modern APIs: Prefer MockMvcTester and RestTestClient over legacy alternatives

Which Test Slice?

Installs
2
GitHub Stars
4
First Seen
May 1, 2026
spring-boot-testing — vekzz-dev/opencode-skills