fosmvvm-ui-tests-generator

Generate UI test scaffolding for FOSMVVM ViewModelViews with XCTest and FOSTestingUI.

3|2|Updated Apr 9, 2023
One-click install
npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-ui-tests-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fosmvvm-ui-tests-generator
Source: https://github.com/foscomputerservices/FOSUtilities/tree/main/.claude/skills/fosmvvm-ui-tests-generator
Command: npx skills add https://github.com/foscomputerservices/FOSUtilities --skill fosmvvm-ui-tests-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of UI tests scaffolding for FOSMVVM ViewModelViews, enabling teams to rapidly scaffold robust UI tests and enforce testing patterns across projects.

Core Features & Use Cases

  • Generate per-view UI tests for UI state and interactions based on ViewModelView definitions.
  • Create operation tests when a view has interactions with ViewModelOperations.
  • Provide standardized XCUIElement accessors and test infrastructure templates for faster project onboarding.
  • Output ready-to-customize test files aligned with the project's naming conventions.

Quick Start

Run the fosmvvm-ui-tests-generator skill to scaffold UI test templates for a specified ViewModelView, then customize the generated files to match your app's identifiers and data models. Update operation stubs with real implementations to enable end-to-end test execution.

Frequently Asked Questions about fosmvvm-ui-tests-generator

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

FAQPage Schema
How do I generate XCTest UI tests for SwiftUI views?

To generate XCTest UI tests for SwiftUI views, use the fosmvvm-ui-tests-generator to scaffold per-view UI state tests, operation tests, and navigation tests based on ViewModelView definitions. It outputs ready-to-customize test files using standardized XCUIElement accessors.

How do I automate UI test scaffolding for MVVM projects?

Automate UI test scaffolding for MVVM projects by running this generator against configured ViewModelViews. It produces tailored operation and navigation test templates aligned with project naming conventions, enforcing consistent testing patterns across the codebase.

Does the fosmvvm-ui-tests-generator work with existing ViewModel operations?

Yes, the fosmvvm-ui-tests-generator works with existing ViewModel operations by creating specific operation tests. It generates test stubs for ViewModelOperations interactions that you update with real implementations for end-to-end test execution.

What is the best way to standardize XCUIElement accessors in XCTest?

The best way to standardize XCUIElement accessors in XCTest is by generating test infrastructure templates through this Skill. It provides standardized accessors and project structure guidance for immediate customization across FOSMVVM views.

Can I generate navigation and UI state tests for ViewModelViews?

Yes, you can generate navigation and UI state tests for ViewModelViews. The Skill outputs per-view test files covering UI state interactions, ViewModel operations, and navigation flows tailored to the configured FOSMVVM architecture.

Do I need FOSTestingUI to scaffold UI tests?

Yes, FOSTestingUI is required as the underlying testing framework. The generator builds XCTest scaffolding on top of FOSTestingUI to produce standardized test infrastructure for FOSMVVM project architectures.