integration-test-generator

Generate Spring Boot integration tests with Testcontainers and H2.

1|Updated May 15, 2026
One-click install
npx skills add https://github.com/arrowInkneeeee/AikSteinsGrimoire --skill integration-test-generator-arrowinkneeeee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-test-generator
Source: https://github.com/arrowInkneeeee/AikSteinsGrimoire/tree/main/aik-skills-lab/integration-test-generator
Command: npx skills add https://github.com/arrowInkneeeee/AikSteinsGrimoire --skill integration-test-generator-arrowinkneeeee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spring-boot-starter-test, testcontainers, mysql-connector-java, h2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of integration tests for Java Spring Boot projects, ensuring the real database interactions are validated, including SQL execution, transaction behavior, and database constraints.

Core Features & Use Cases

  • Integration Test Generation: Automatically generates integration tests using @SpringBootTest for true database interaction.
  • Database Detection: Detects and configures MySQL, PostgreSQL, Oracle, or H2 databases for testing.
  • Testcontainers Support: Uses Testcontainers for easy setup and teardown of test environments.
  • Use Case: Ideal for testing Mapper SQL execution, complex queries, transaction rollback, and database constraints.

Quick Start

Generate integration tests for your Spring Boot application by running the 'generate-tests' command.

Frequently Asked Questions about integration-test-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate integration tests for Spring Boot database interactions?

To generate integration tests for Spring Boot database interactions, you can use this Skill to automate @SpringBootTest creation. It detects your database configuration and generates tests that validate SQL execution, transaction behavior, and database constraints.

How does Testcontainers work with H2 for Java integration testing?

Testcontainers works with H2 for Java integration testing by providing easy setup and teardown of test environments. This Skill configures Testcontainers alongside an H2 in-memory database to validate Mapper SQL execution and complex queries without manual environment management.

Can I use this integration test generator with MySQL and PostgreSQL databases?

Yes, you can use this integration test generator with MySQL and PostgreSQL databases. It features database detection that automatically discovers and configures MySQL, PostgreSQL, Oracle, or H2 databases to validate your real database interactions.

Do I need Spring Boot and Testcontainers dependencies to automate integration test generation?

Yes, you need Spring Boot and Testcontainers dependencies to automate integration test generation. This Skill requires spring-boot-starter-test, testcontainers, and either mysql-connector-java or h2 dependencies to properly validate SQL execution and transaction handling.

What is the best way to validate transaction rollback and database constraints in Java?

The best way to validate transaction rollback and database constraints in Java is through automated integration testing. This Skill generates tests using @SpringBootTest and Testcontainers to verify transaction behavior, rollback functionality, and database constraints against a real database.