Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aj-geddes avatar

Integration Testing

  • 492 installs
  • 305 repo stars
  • Updated March 4, 2026
  • aj-geddes/useful-ai-prompts

integration-testing is an agent skill that designs and implements integration tests verifying API endpoints, database operations, and external service interactions for developers who need confidence that components work

About

integration-testing is a Testing & QA skill from aj-geddes/useful-ai-prompts that guides agents through designing and running tests beyond unit isolation. The skill covers component interaction validation, API endpoint testing, database operation checks, and external service communication patterns with reference guides and best practices. Unlike unit tests that mock dependencies, integration tests exercise real boundaries between modules and services. Developers reach for integration-testing when validating REST or GraphQL APIs, ORM database layers, message queues, or third-party SDK calls need end-to-end component verification before a release candidate ships.

  • Verifies component interactions across databases, APIs, and external services
  • Covers API endpoint testing with real database connections
  • Validates service-to-service communication and data flows
  • Tests repository/DAO layers, authentication flows, and message queues
  • Includes reference guides and best practices for reliable test design

Integration Testing by the numbers

  • 492 all-time installs (skills.sh)
  • Ranked #618 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aj-geddes/useful-ai-prompts --skill integration-testing

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs492
repo stars305
Last updatedMarch 4, 2026
Repositoryaj-geddes/useful-ai-prompts

How do you write integration tests for APIs and databases?

Design and run integration tests that verify how their API endpoints, databases, and external services interact before shipping.

Who is it for?

Backend developers shipping services with multiple integrated components who need structured guidance for API, database, and external-service test design.

Skip if: Developers who only need isolated unit tests for pure functions without cross-module or network boundaries should use unit-testing skills instead.

When should I use this skill?

A developer asks to write integration tests, validate API endpoints with databases, or test service-layer interactions across components.

What you get

Integration test suites covering API endpoints, database operations, service-layer interactions, and external service mocks or live stubs.

  • Integration test suites
  • API endpoint test cases
  • Database interaction tests

Files

SKILL.mdMarkdownGitHub ↗

Integration Testing

Table of Contents

Overview

Integration testing validates that different components, modules, or services work correctly together. Unlike unit tests that isolate single functions, integration tests verify the interactions between multiple parts of your system including databases, APIs, external services, and infrastructure.

When to Use

  • Testing API endpoints with real database connections
  • Verifying service-to-service communication
  • Validating data flow across multiple layers
  • Testing repository/DAO layer with actual databases
  • Checking authentication and authorization flows
  • Verifying message queue consumers and producers
  • Testing third-party service integrations

Quick Start

Minimal working example:

// test/api/users.integration.test.js
const request = require("supertest");
const app = require("../../src/app");
const { setupTestDB, teardownTestDB } = require("../helpers/db");

describe("User API Integration Tests", () => {
  beforeAll(async () => {
    await setupTestDB();
  });

  afterAll(async () => {
    await teardownTestDB();
  });

  beforeEach(async () => {
    await clearUsers();
  });

  describe("POST /api/users", () => {
    it("should create a new user with valid data", async () => {
      const userData = {
        email: "test@example.com",
        name: "Test User",
        password: "SecurePass123!",
      };
// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
API Integration TestingAPI Integration Testing
Database Integration TestingDatabase Integration Testing
External Service IntegrationExternal Service Integration
Message Queue IntegrationMessage Queue Integration

Best Practices

✅ DO

  • Use real databases in integration tests (in-memory or containers)
  • Test actual HTTP requests, not mocked responses
  • Verify database state after operations
  • Test transaction boundaries and rollbacks
  • Include authentication/authorization in tests
  • Test error scenarios and edge cases
  • Use test containers for isolated environments
  • Clean up data between tests

❌ DON'T

  • Mock database connections in integration tests
  • Skip testing error paths
  • Leave test data in databases
  • Use production databases for testing
  • Ignore transaction management
  • Test only happy paths
  • Share state between tests
  • Hardcode URLs or credentials

Related skills

How it compares

Pick integration-testing when multiple components must be exercised together; use unit-testing skills when isolating individual functions suffices.

FAQ

What does integration-testing cover beyond unit tests?

integration-testing validates that components, modules, and services work together—API endpoints, database operations, and external service communication. Unlike unit tests that isolate single functions, integration tests verify real cross-boundary interactions.

When should developers use the integration-testing skill?

Developers should use integration-testing when designing integration test suites, API tests, end-to-end component tests, or service layer validation. The skill provides quick start guides, reference material, and best practices for pre-ship verification.

Testing & QAtestingintegrationsbackend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.