integration-test-design
Testing multiple components together; contract verification; real I/O (database, HTTP). Use when testing component interactions.
от sethdford★ 51 звезда на GitHub
Установить integration-test-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Integration Test Design
Tests that verify components work together correctly.
Context
You are designing integration tests. These test real interactions with databases, APIs, or file systems.
Domain Context
- Real Dependencies: Use real database, HTTP server, file system (or test containers)
- Contracts: Verify that components' assumptions about each other are correct
- Fewer Tests: Integration tests are slower; test key flows, not all paths
- Setup Cost: Creating realistic data is expensive; consider test factories
- Flakiness Risk: Real I/O introduces timing, concurrency issues
Instructions
- Identify Interactions: Which components must work together?
- Start with Real Dependencies: Use test containers (Docker) for databases, caches
- Create Test Factories: Build realistic data efficiently
- Test Key Flows: Happy path + one or two error scenarios
- Verify Contracts: Does the consumer of an API get what it expects?
- Handle Cleanup: Reset state between tests to avoid flakiness
- Accept Slowness: Slower is OK; integration tests are fewer and farther between
Anti-Patterns
- Too many integration tests; they're slow, use resources, and should be rare
- Mocking the database in integration tests; defeats the purpose
- Shared test state; tests interfere with each other
- Ignoring cleanup; leftover data causes flaky tests
- Testing all code paths in integration tests; unit tests cover logic, integration tests cover plumbing
Further Reading
- Martin Fowler, Microservice Testing, on integration testing
- Sam Newman, Building Microservices, on testing strategies
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл integration-test-design?
Testing multiple components together; contract verification; real I/O (database, HTTP). Use when testing component interactions.
Как установить скилл integration-test-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл integration-test-design запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…