test-generator

Generate Swift test templates and mocks for iOS/macOS apps.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/ano4l/SiteRent --skill test-generator-ano4l
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-generator
Source: https://github.com/ano4l/SiteRent/tree/main/skills/generators/test-generator
Command: npx skills add https://github.com/ano4l/SiteRent --skill test-generator-ano4l

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Swift and macOS/iOS teams spend significant time scaffolding tests; this Skill automates generation of comprehensive test templates and utilities.

Core Features & Use Cases

  • Automatically generate Unit, Integration, and UI test templates for Swift Testing and XCTest, including ViewModelTests, ServiceTests, RepositoryTests, and Screen Object patterns.
  • Provide ready-made mocks, test helpers, and data fixtures to speed up test development.
  • Supports parameterized tests, error handling scenarios, and async testing best practices.

Quick Start

Generate a ready-to-run Swift test scaffold for your project by selecting the target frameworks and templates.

Frequently Asked Questions about test-generator

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

FAQPage Schema
How do I generate Swift test templates for iOS and macOS apps?

You can generate Swift test templates by automatically scaffolding unit, integration, and UI tests. This provides ready-to-run test structures for ViewModels, Services, and Repositories, significantly reducing the manual time spent creating test files.

Does the generated test scaffolding work with both XCTest and Swift Testing frameworks?

Yes, the generated test scaffolding fully supports both XCTest and Swift Testing frameworks. It automatically adapts the test templates to fit your chosen framework while enforcing best practices for parameterized tests and async testing.

Can I automatically create mocks and data fixtures for my iOS architecture?

Yes, you can automatically create mocks and data fixtures for your iOS architecture. The generated test utilities adapt to MVVM, Repository, or other custom architectures, providing ready-made mocks to enforce isolated testing.

What is the best way to scaffold UI tests for Swift applications?

The best way to scaffold UI tests for Swift applications is using automated Screen Object patterns. This enforces isolated tests and provides ready-made test helpers, covering comprehensive error handling scenarios for iOS and macOS.

How do I handle async testing and parameterized tests in Swift?

To handle async testing and parameterized tests in Swift, use auto-generated templates that enforce testing best practices. These templates provide built-in structures specifically designed for async operations and parameterized test scenarios.