backend-spring-test
OfficialReview Spring tests with the right slice
Software Engineering#testing#spring boot#testcontainers#mockbean#webmvctest#datajpatest#security context
Authorinfraspecdev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you catch Spring Boot test anti-patterns that make suites slow, fragile, or misleading, especially when the wrong test slice or mock strategy hides real defects.
Core Features & Use Cases
- Slice Selection Review: Checks whether a test should use Spring Boot integration, MVC, JPA, JSON, or another narrower slice.
- Mock and Context Hygiene: Flags excessive mocking, misuse of Spring test annotations, and unnecessary full-context bootstrapping.
- Isolation and Data Strategy: Evaluates context reset behavior, transactional rollback, security context setup, and database choices such as Testcontainers versus H2.
- Use Case: A team asks why controller tests are slow and brittle; this Skill identifies overused full-context tests and recommends the most appropriate Spring test pattern.
Quick Start
Review the attached Spring Boot test files and recommend the best slice annotation, mocking approach, and isolation strategy for each test.
Dependency Matrix
Required Modules
None requiredComponents
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: backend-spring-test Download link: https://github.com/infraspecdev/tesseract/archive/main.zip#backend-spring-test Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.