कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

fosmvvm-viewmodel-test-generator

foscomputerservices द्वारा

Git & GitHub
302clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Generate ViewModel tests with codable round-trip, versioning stability, and multi-locale translation verification.

विवरण

यह स्किल क्या करती है

Generates Swift test files for FOSMVVM ViewModels, covering codable round-trip encoding, versioning stability, and multi-locale translation verification. Works from conversation context to determine ViewModel structure and localization requirements. Produces test suites and YAML translation files.

A single expectFullViewModelTests() call replaces writing separate codable, versioning, and localization tests by hand.

इसे कब इस्तेमाल करें

  • Adding test coverage to a newly created ViewModel
  • Verifying all localized strings have translations in every supported locale
  • Testing nested ViewModel hierarchies with parent and child types
  • Checking that @LocalizedSubs substitution produces the correct output strings
  • Catching versioning regressions when a ViewModel structure changes

उदाहरण वर्कफ़्लो

इनपुट

User asks: generate tests for DashboardViewModel which has @LocalizedString pageTitle and emptyMessage

एजेंट
  1. 1

    Identifies ViewModels and their @LocalizedString properties from conversation context

  2. 2

    Determines YAML entries needed for each locale (en, es by default)

  3. 3

    Generates DashboardViewModelTests.swift conforming to LocalizableTestCase with expectFullViewModelTests call

  4. 4

    Generates DashboardViewModel.yml with en and es translations for pageTitle and emptyMessage

  5. 5

    Reports file locations under Tests/{Target}Tests/Localization/ and Tests/{Target}Tests/TestYAML/

आउटपुट

DashboardViewModelTests.swift and DashboardViewModel.yml ready to drop into the SPM test target

इंस्टॉलेशन

clawhub install foscomputerservices/fosmvvm-viewmodel-test-generator

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक