FOSMVVM UI Tests Generator for Openclaw

Automates the creation of robust UI tests for FOSMVVM SwiftUI views using XCTest and the FOSTestingUI framework.

foscomputerservices
v2.0.6
Feb 22, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fosmvvm-ui-tests-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fosmvvm-ui-tests-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is FOSMVVM UI Tests Generator?

The FOSMVVM UI Tests Generator is a specialized developer tool within the Openclaw Skills ecosystem designed to accelerate the testing phase of iOS and macOS applications. It automates the generation of boilerplate and complex testing logic for ViewModelViews, ensuring that accessibility identifiers, ViewModelOperations, and test data transporters are correctly implemented.

By using this skill, developers can maintain a high standard of quality with minimal manual effort. It bridges the gap between view implementation and test coverage by synthesizing context from your existing codebase to produce standard-compliant XCTest files that verify both visual states and underlying business logic triggers.

FOSMVVM UI Tests Generator Use Cases

  • Implementing UI test coverage for newly created SwiftUI ViewModelViews.
  • Setting up project-wide UI testing infrastructure and base test cases.
  • Validating interactive user flows, such as form submissions and navigation.
  • Verifying that business logic operations are correctly invoked by UI elements.
  • Testing complex UI states based on stubbed ViewModel data.

How FOSMVVM UI Tests Generator Works

  1. The skill analyzes the conversation context or provided View code to identify the ViewModel and its associated operations.
  2. It determines if the view is interactive (requiring operation verification) or display-only.
  3. It generates the project-specific base test case class that inherits from ViewModelViewTestCase.
  4. It creates individual XCTest files containing test methods for UI state and user interactions.
  5. It produces XCUIApplication extensions to provide clean, reusable accessors for UI elements via accessibility identifiers.
  6. It provides the necessary DEBUG modifiers and state properties required for the view to support data transport during testing.

FOSMVVM UI Tests Generator Setup

To utilize this functionality within your development environment, ensure your project is configured with the FOSUtilities framework. You can invoke the skill directly through your AI agent interface using Openclaw Skills.

# Invoke the generator
/fosmvvm-ui-tests-generator

Ensure that your target view has accessibility identifiers defined, as the generator relies on these for element selection.

FOSMVVM UI Tests Generator Data Schema & Taxonomy

The skill organizes generated content into a structured hierarchy within your test targets:

Component File Pattern Directory Location
Base Infrastructure {ProjectName}ViewModelViewTestCase.swift Tests/UITests/Support/
UI Element Helpers XCUIElement.swift Tests/UITests/Support/
View UI Tests {ViewName}UITests.swift Tests/UITests/Views/{Feature}/
Operations Stubs {ViewName}ViewModelOperations.swift Sources/{ViewModelsTarget}/{Feature}/

FOSMVVM UI Tests Generator Advanced Features

  • Context-aware generation that detects whether a view needs interactive operation stubs or simple display verification.
  • Integrated support for TestConfiguration to launch apps in specific states, such as authenticated or offline modes.
  • Automatic implementation of the repaintToggle pattern to ensure UI updates are captured during test data transport.
  • Helper extension generation for XCUIElement to handle common actions like menu tapping and waiting for text updates.
  • Multi-platform support for Darwin-based operating systems including iOS and macOS via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*