crm-ios-repository-test

Validate API response-to-DTO transformations for CRM iOS repository methods.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/herren-official/product-agents --skill crm-ios-repository-test
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: crm-ios-repository-test
Source: https://github.com/herren-official/product-agents/tree/main/skills/crm-iOS/repository-test
Command: npx skills add https://github.com/herren-official/product-agents --skill crm-ios-repository-test

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repository tests ensure that NetworkSystem module's API responses are correctly transformed into DTOs, preventing regressions in data models and network layer contracts.

Core Features & Use Cases

  • Validate repository method signatures and DTO initializers against real API DTO structures.
  • Generate and map MockJSONFile data to simulate network responses for RxSwift and Combine flows.
  • Verify end-to-end DTO transformation and compile-time correctness through explicit tests and router mappings.

Quick Start

Create the repository test suite following the steps above and run the NetworkSystemTests to verify the DTO mappings.

Frequently Asked Questions about crm-ios-repository-test

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

FAQPage Schema
How do I test API response to DTO transformation in an iOS repository?▼

To test API response to DTO transformation in an iOS repository, you validate repository method signatures and DTO initializers against real API structures using mock JSON data. This structured workflow prevents network layer regressions.

How do I generate mock JSON data for RxSwift and Combine repository tests?▼

Generate mock JSON data for RxSwift and Combine repository tests by mapping MockJSONFile data to simulate network responses. This verifies end-to-end DTO transformation and compile-time correctness across reactive flows.

Does this repository testing approach support both RxSwift and Combine patterns?▼

Yes, this repository testing approach supports both RxSwift and Combine patterns. It maps mock JSON data to simulate network responses for both reactive frameworks, enabling comprehensive end-to-end DTO verification across asynchronous flows.

What is the best way to verify compile-time correctness for iOS DTO mappings?▼

The best way to verify compile-time correctness for iOS DTO mappings is through a structured testing workflow. This workflow includes DTO initialization, router mapping, and explicit tests using mock JSON data to validate repository method signatures.

Why do I need mock JSON files for iOS network layer unit tests?▼

You need mock JSON files for iOS network layer unit tests to simulate real API responses safely. They validate that repository methods correctly transform API responses into DTOs without hitting the network, satisfying strict test coverage requirements.