ios-generate-unit-tests

Generate RxSwift unit tests with mocks, TestScheduler, and memory-leak checks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/daispacy/py-claude-marketplace --skill ios-generate-unit-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-generate-unit-tests
Source: https://github.com/daispacy/py-claude-marketplace/tree/main/py-plugin/skills/ios-generate-unit-tests
Command: npx skills add https://github.com/daispacy/py-claude-marketplace --skill ios-generate-unit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically generates comprehensive unit tests for iOS RxSwift projects, following Clean Architecture patterns with mocks, TestScheduler, and memory-leak considerations.

Core Features & Use Cases

  • Test scaffolding: Create tests for ViewModels, UseCases, and Services with nested mocks.
  • Rx testing: Include TestScheduler, RxTest observers, and RxBlocking patterns.
  • Session error tests: Include tests for API/Session errors and memory leaks.

Quick Start

Request: "generate unit tests for BalanceInformationViewModel.swift" and receive a fully structured test file at PayooMerchantTests/...

Frequently Asked Questions about ios-generate-unit-tests

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

FAQPage Schema
How do I generate unit tests for iOS RxSwift ViewModels automatically?

This Skill automates unit test generation for iOS RxSwift ViewModels, UseCases, and Services by analyzing your Swift files and producing fully structured test files with mocks, TestScheduler patterns, and memory-leak checks following Clean Architecture conventions.

What testing patterns does RxSwift unit test generation include?

Generated tests include TestScheduler for reactive streams, RxTest observers, RxBlocking patterns, nested mocks for dependencies, session error handling, memory-leak detection, and coverage of loading states, errors, empty states, and user actions.

Can I use this for testing across ViewModels, UseCases, and Services in one project?

Yes, the Skill generates comprehensive tests for ViewModels, UseCases, and Services with appropriate mocking and patterns for each component type, applying the same Clean Architecture testing structure across all three.

What does generated RxSwift test scaffolding include?

Test scaffolding includes required imports, setUp and tearDown cleanup methods, data factories, nested mocks for dependencies, and predefined test cases covering functional requirements, edge cases, and technical concerns like memory leaks.

Do I need to manually write test setup code after generation?

No, generated tests include complete setUp and tearDown methods, all required imports, data factories, and ready-to-run test cases, minimizing manual configuration and setup work.