FOSMVVM ServerRequest Test Generator for Openclaw

An automated generator for typed ServerRequest tests using the VaporTesting infrastructure to validate API logic and localization.

foscomputerservices
v2.0.6
Feb 15, 2026
2
1.5k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install fosmvvm-serverrequest-test-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-serverrequest-test-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 ServerRequest Test Generator?

The FOSMVVM ServerRequest Test Generator is a specialized tool within the Openclaw Skills ecosystem designed to streamline the creation of unit and integration tests for server-side Swift. By leveraging the VaporTesting framework, this skill eliminates the need for manual URL construction and error-prone JSON decoding, providing developers with a type-safe environment to verify Show, Create, Update, and Delete operations. This approach ensures that server responses, error handling, and multi-locale support are rigorously tested through a full-stack flow, maintaining high code quality and architectural consistency in FOSMVVM-based projects.

This skill is highly context-aware, referencing previous conversations and existing code to determine the appropriate test structure without requiring manual file path inputs. It is an essential component for developers looking to automate the verification of their API contracts and ensure that localized content is delivered correctly to clients.

FOSMVVM ServerRequest Test Generator Use Cases

  • Verifying server responses for CRUD operations like Show, Create, Update, and Delete.
  • Testing complex error handling scenarios and edge cases in API endpoints.
  • Validating multi-locale response bodies and localization strings across different languages.
  • Automating integration testing between client-side request types and server-side controllers.
  • Generating comprehensive test suites for new features without writing manual boilerplate code.

How FOSMVVM ServerRequest Test Generator Works

  1. The skill analyzes the conversation context to identify the specific ServerRequest type, request protocol, and associated ResponseBody types.
  2. It detects the project environment, including target names, existing test patterns, and localization setups.
  3. A comprehensive test scenario plan is formulated, covering success paths, validation failures, and multi-locale verification.
  4. The generator produces a complete Swift test file conforming to VaporTesting patterns, including the necessary imports and @Suite definitions.
  5. The generated code includes an application setup helper (withTestApp) and route registration logic to ensure the test environment matches the production server configuration.

FOSMVVM ServerRequest Test Generator Setup

To use this tool within the Openclaw Skills framework, ensure your server-side Swift project is configured with the necessary FOSMVVM and VaporTesting dependencies.

  1. Invoke the skill using the command:
/fosmvvm-serverrequest-test-generator
  1. Ensure the ServerRequest and Controller implementation are present in the AI agent's context.
  2. Run the generated tests using the Swift package manager:
swift test

FOSMVVM ServerRequest Test Generator Data Schema & Taxonomy

File Location Purpose
{Feature}RequestTests.swift Tests/{Target}Tests/Requests/ The primary test suite containing typed validation logic for server requests.
Test YAML Tests/{Target}Tests/TestYAML/ Localization resource files used to verify translated strings in ViewModels.
TestingServerRequestResponse Infrastructure A wrapper providing typed access to HTTP status, headers, body, and errors.

FOSMVVM ServerRequest Test Generator Advanced Features

  • Automated route registration within the test application lifecycle to prevent "Route not found" errors.
  • Support for testing ServerRequestError localizations, specifically handling enums with associated values and substitutions.
  • Built-in multi-locale testing constants for English (US/GB) and Spanish to ensure global readiness.
  • Type-safe response decoding that automatically maps JSON payloads to R.ResponseBody or R.ResponseError types.
  • Contextual awareness that eliminates the need for manual Q&A or file path specifications during the generation process.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*