integration-test-generator

Generate integration and end-to-end tests for real database, API, and message-queue interactions.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuridefranca/ai-prompts --skill integration-test-generator-yuridefranca
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-test-generator
Source: https://github.com/yuridefranca/ai-prompts/tree/main/src/skills/integration-test-generator
Command: npx skills add https://github.com/yuridefranca/ai-prompts --skill integration-test-generator-yuridefranca

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integration and E2E gaps often let contract, orchestration, and deployment bugs reach production because unit tests mock dependencies and do not validate real interactions. This Skill provides a repeatable process to create runnable integration and end-to-end tests that exercise real databases, APIs, message queues, and other infrastructure to catch integration failures early.

Core Features & Use Cases

  • Environment setup: Guidance to configure real test databases, test servers, and message queue instances and tear them down cleanly.
  • Consistent frameworks: Use the same testing framework as unit tests (Jest, Vitest, node:test, Bun) and follow project naming conventions for integration/e2e files.
  • Real-dependency validation: Generate tests that verify read-after-write behavior, transaction rollbacks, error propagation across boundaries, and end-to-end user workflows (e.g., registration to checkout).
  • CI readiness: Ensure tests are idempotent, clean up after themselves, and are runnable in CI/CD pipelines.

Quick Start

Generate integration and E2E tests for the checkout and payment flows using real databases and external APIs after implementation is complete and unit tests pass.

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 that verify real database and API interactions?

To generate integration tests for real database and API interactions, use this Skill after implementation is complete and unit tests pass. It creates end-to-end tests that validate actual dependencies, including read-after-write behavior and transaction rollbacks, ensuring components work together correctly.

When do I need end-to-end tests instead of unit tests for my application?

You need end-to-end tests when unit tests mock dependencies and fail to validate real interactions across boundaries. Integration tests verify orchestration, deployment bugs, and actual database, API, and message queue interactions, catching contract failures that unit tests miss before reaching production.

How do I write integration tests that are runnable in CI/CD pipelines?

To write integration tests runnable in CI/CD pipelines, this Skill ensures tests are idempotent and clean up after themselves. It provides guidance to configure real test databases, test servers, and message queue instances, tearing them down cleanly to maintain pipeline stability.

Can I use my existing testing framework like Jest or Vitest for integration testing?

Yes, you can use existing testing frameworks like Jest, Vitest, node:test, or Bun for integration testing. This Skill uses the same testing framework as your unit tests and follows project naming conventions for integration and end-to-end test files.

What is the best way to set up and tear down test databases for integration tests?

The best way to set up and tear down test databases for integration tests is using environment setup guidance. This Skill provides repeatable processes to configure real test databases, test servers, and message queue instances, ensuring clean teardowns after verifying real system interactions.

Why do mocked unit tests fail to catch integration failures in my CI pipeline?

Mocked unit tests fail to catch integration failures because they mock dependencies and do not validate real interactions across system boundaries. Integration tests exercise actual databases, APIs, and message queues to verify error propagation and orchestration, catching contract bugs early.