integration-test-scaffold

Generate cross-module integration test scaffolds with mock servers and in-memory data stores.

603|51|Updated Oct 29, 2025
One-click install
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill integration-test-scaffold
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-test-scaffold
Source: https://github.com/rshankras/claude-code-apple-skills/tree/main/skills/testing/integration-test-scaffold
Command: npx skills add https://github.com/rshankras/claude-code-apple-skills --skill integration-test-scaffold

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of comprehensive integration test environments, enabling developers to thoroughly test the interaction between different layers of their application without relying on live external services.

Core Features & Use Cases

  • Mock Server Generation: Creates interceptors (like URLProtocol) to simulate API responses.
  • In-Memory Data Stores: Sets up in-memory containers for SwiftData or mock UserDefaults for isolated testing.
  • Test Environment Wiring: Assembles mock services, repositories, and view models into a cohesive testable unit.
  • Use Case: When testing a feature that involves fetching data from an API, processing it in a repository, and displaying it in a ViewModel, this skill generates the necessary mocks to ensure all parts work together correctly.

Quick Start

Use the integration-test-scaffold skill to generate a test harness for testing the network and repository layers together.

Frequently Asked Questions about integration-test-scaffold

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

FAQPage Schema
How do I set up an integration test harness for SwiftData and networking in Swift?

An integration test scaffold wires mock servers, in-memory data stores, and dependency injection together, enabling you to test networking, persistence, and business logic interactions comprehensively without relying on live external services.

Can I use URLProtocol to mock API responses for integration testing?

Yes, you can use URLProtocol to mock API responses. The scaffold generates URLProtocol-based interceptors that simulate network responses, allowing you to test the network and repository layers together in a controlled environment.

How do I test repository and ViewModel interactions without hitting a live API?

The scaffold assembles mock services, repositories, and view models into a cohesive unit using in-memory data stores and mock servers, ensuring all parts of a feature work together correctly without hitting a live API.

Does this integration test scaffold support SwiftData in-memory containers?

Yes, the integration test scaffold supports SwiftData in-memory containers. It sets up in-memory data stores for SwiftData to facilitate isolated testing of persistence layers and business logic interactions.

What is the best way to configure dependency injection for end-to-end testing in Swift?

The best way to configure dependency injection for end-to-end testing is generating a test scaffold that wires mock services and repositories together, providing a cohesive testable unit for comprehensive interaction testing across application layers.