junit5-testcontainers-patterns

Community

Test slice patterns with Testcontainers.

Authorloiane
Version1.0.0
Installs0

System Documentation

What problem does it solve?

JUnit 5 + Spring Boot 4 testing patterns enable consistent, scalable test slices and reliable external resources using Testcontainers, reducing flaky tests and maintenance overhead.

Core Features & Use Cases

  • Patterned test slices (e.g., @WebMvcTest, @DataJpaTest) with guidance for when to use slice tests vs full integration tests.
  • Integration with Testcontainers using @ServiceConnection to simplify container-based testing in Spring Boot 4 projects.
  • Use cases include replacing heavy @SpringBootTest with focused slices while maintaining test coverage and determinism.

Quick Start

Identify test-slice patterns and configure Testcontainers for a Spring Boot 4 project.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: junit5-testcontainers-patterns
Download link: https://github.com/loiane/specs-driven-development-spring-angular/archive/main.zip#junit5-testcontainers-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.