integration-test-writer

Generate integration tests for API endpoints, database operations, and multi-component workflows.

25|2|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/matteocervelli/llms --skill integration-test-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-test-writer
Source: https://github.com/matteocervelli/llms/tree/main/.claude/skills/integration-test-writer
Command: npx skills add https://github.com/matteocervelli/llms --skill integration-test-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, fastapi, sqlalchemy, httpx, and includes scripts (resource) components.

What problem does it solve?

This Skill guides engineers in writing comprehensive integration tests that verify interactions across API endpoints, databases, and multiple services.

Core Features & Use Cases

  • Identify integration points (API, DB, services)
  • Setup and describe integration test environments
  • Provide example test scaffolds for pytest, FastAPI, and HTTP clients
  • Document test strategies for multi-component workflows

Quick Start

Start by outlining an integration test plan for a sample feature and scaffold test files using the provided templates.

Frequently Asked Questions about integration-test-writer

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

FAQPage Schema
How do I write integration tests that verify API endpoints and database interactions?

Integration tests verify end-to-end behavior across API endpoints, databases, and services by testing actual component interactions rather than mocked units. Use pytest with FastAPI and SQLAlchemy to scaffold tests that seed data, override dependencies, and validate error propagation across system boundaries.

What's the best way to set up test environments for multi-component workflows?

Set up reproducible test environments using pytest fixtures to manage database state, dependency injection to override services, and httpx clients to test API endpoints. This approach isolates integration tests from external services while verifying real interactions between components.

Can I use pytest and FastAPI together for testing authentication and external service integrations?

Yes. pytest with FastAPI supports testing authentication flows, authorization logic, and external service integrations through fixture-based dependency overrides and HTTP client mocking, enabling comprehensive integration tests across security and service boundaries.

How do I generate integration test scaffolds and plans for a new feature?

Define integration points (APIs, databases, services), identify test strategies for multi-component workflows, then use template code samples for pytest and FastAPI to scaffold test files. An integration test plan documents the end-to-end scenarios and boundary conditions to verify.

What are the limitations of integration testing versus unit testing?

Integration tests run slower and require real or reproducible environments (databases, services), but catch errors unit tests miss: configuration issues, boundary misalignments, and error propagation. Use both; integration tests verify system correctness while unit tests validate component logic.

Do I need to configure databases and external services to run integration tests?

Integration tests require reproducible test data and environments. Use SQLAlchemy fixtures to manage test databases, dependency overrides to replace external services with mocks, and httpx clients to test API endpoints without external dependencies.