testing-expert

Community

Automate E2E integration tests with TestContainers and fixtures.

Authorryu-qqq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill standardizes end-to-end (E2E) integration testing by leveraging TestRestTemplate for real HTTP requests, TestContainers for actual databases, and Gradle testFixtures for reusable test data. It eliminates flaky tests, ensures comprehensive coverage, and builds confidence in your deployments.

Core Features & Use Cases

  • E2E Integration Testing: Configures @SpringBootTest(webEnvironment = RANDOM_PORT) with TestRestTemplate to simulate real user interactions across all application layers.
  • Real Database Testing with TestContainers: Integrates TestContainers with MySQL to run tests against an actual database, ensuring environment parity and catching database-specific issues.
  • Reusable Test Data with Gradle testFixtures: Utilizes Gradle testFixtures for creating and sharing domain, application, and adapter-level test data, along with @Sql for efficient DML-only data insertion.
  • Zero-Tolerance Rules: Prohibits MockMvc, @Sql for DDL, @WebMvcTest for integration tests, and enforces @Transactional for robust test isolation.
  • Use Case: When developing a new feature, use this skill to generate robust integration tests that cover the entire application flow. This ensures high confidence in deployments and significantly reduces manual testing effort, allowing you to rest easy.

Quick Start

Generate an E2E integration test for an 'Order Creation' API, using TestRestTemplate, TestContainers, and SQL test data.

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: testing-expert
Download link: https://github.com/ryu-qqq/AuthHub/archive/main.zip#testing-expert

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