integration-test-scaffold
Generate cross-module test harness with mock servers, in-memory stores, and test configuration. Use when testing networking + persistence + business logic together.
npx skills add rshankras/claude-code-apple-skills --skill integration-test-scaffold --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Integration Test Scaffold Generate test infrastructure for testing multiple modules working together — networking + persistence + business logic — without hitting real servers or databases. ## When This Skill Activates Use this skill when the user: - Wants to "test the full stack" or "integration test" - Needs a mock server or mock API - Wants to test networking + caching together - Asks about "end-to-end tests without real servers" - Needs to test data flow across layers (API → Repository → ViewModel) - Mentions "test harness" or "test environment" ## Why Integration Tests ``` Unit tests: Test ONE thing in isolation (fast, focused) Integration tests: Test MULTIPLE things together (realistic, catches wiring bugs) Unit test passes: PriceCalculator works alone ✅ Integration test: PriceCalculator + API + Cache work together ✅ (Catches: wrong data format, missing mapping, race conditions) ``` ## Process ### Phase 1: Map the Integration Boundaries Identify what modules interact: ``` Grep: "import |@testable import" to find module dependencies Read: source files to understand data flow ``` Common integration boundaries: - **Network → Parser → Repository** (API data flow) - **Repository
- When This Skill Activates
- Why Integration Tests
- Process
- Phase 1: Map the Integration Boundaries
- Phase 2: Configuration Questions
- Phase 3: Generate Mock Server
- Phase 4: Generate In-Memory Store
- Phase 5: Generate Test Environment
- Phase 6: Generate Integration Tests
- File Structure
- Output Format
- References
What does the integration-test-scaffold skill do?
Generate cross-module test harness with mock servers, in-memory stores, and test configuration. Use when testing networking + persistence + business logic together.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill integration-test-scaffold --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
