fosmvvm-viewmodel-test-generator

Generate localized ViewModel tests for MVVM Swift projects using FOSMVVM patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of localized ViewModel tests for MVVM-based Swift projects, reducing manual testing effort and ensuring consistent coverage across locales.

Core Features & Use Cases

  • Generates test suites for ViewModels with localization, including nested child models and embedded test scenarios.
  • Produces YAML translations and test templates that align with the FOSMVVM testing pattern.
  • Use Case: when adding a new ViewModel with localization, run this generator to produce tests and YAML coverage ready for CI.

Quick Start

Use the fosmvvm-viewmodel-test-generator skill to scaffold tests for a new ViewModel, selecting the target and resource directory as prompted.

Frequently Asked Questions about fosmvvm-viewmodel-test-generator

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

FAQPage Schema
How do I generate localized ViewModel tests for Swift MVVM projects?

To generate localized ViewModel tests for Swift MVVM projects, you use a generator to scaffold test suites that validate encoding, versioning, and translations across multiple locales. This produces YAML translations and test templates ready for CI integration.

Does this ViewModel test generator support nested child models and YAML localization data?

Yes, this ViewModel test generator supports nested child models and YAML localization data. It creates automated test suites that specifically validate embedded child ViewModels alongside YAML translation files following established FOSMVVM testing patterns.

How do I scaffold tests for a new ViewModel with localization in Swift?

To scaffold tests for a new ViewModel with localization in Swift, you select the target and resource directory as prompted. The generator then creates corresponding test suites and YAML coverage files validating translations, encoding, and versioning.

What is the best way to automate MVVM testing for multiple locales?

The best way to automate MVVM testing for multiple locales is using a test generation skill that produces YAML translations and test templates. This ensures consistent localization coverage across multiple locales and nested view models for CI.

Can I use this generator for Swift projects not using FOSMVVM patterns?

This generator specifically targets MVVM-based Swift projects using FOSMVVM patterns. Projects not following these established patterns may not align with the generated test templates and YAML localization data structures.

Why do I need automated tests for ViewModel encoding and versioning?

Automated tests for ViewModel encoding and versioning are needed to ensure consistent data handling across multiple locales. They validate that translations, nested view models, and YAML localization data perform correctly before deployment.