본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

fosmvvm-ui-tests-generator

foscomputerservices 제작

Coding Agents & IDEs
317clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Generate UI tests for FOSMVVM SwiftUI views using XCTest and FOSTestingUI.

설명

이 스킬이 하는 일

Generates XCTest-based UI tests for SwiftUI views built with the FOSMVVM architecture. Handles both interactive views that verify ViewModelOperations and display-only views that only check UI state. Produces base test infrastructure and per-view test files with element accessors.

Generates the full test scaffolding, including operations stubs and test data transport wiring, that FOSMVVM's architecture requires but is tedious to write by hand.

사용 시점

  • Writing UI tests for a new form view that calls backend APIs
  • Verifying button interactions invoke the correct ViewModelOperations
  • Testing display-only cards render the right data from stub ViewModels
  • Setting up base XCTest infrastructure for a new FOSMVVM project
  • Covering navigation flows between ViewModelViews with accessibility identifiers

예시 워크플로

입력

User asks: Generate UI tests for TaskFormView, which has submit and cancel buttons that call TaskFormViewOps

에이전트
  1. 1

    Identifies TaskFormView as an interactive view requiring ViewModelOperations verification

  2. 2

    Generates base test case class inheriting from ViewModelViewTestCase if not already present

  3. 3

    Creates TaskFormViewUITests with UI state tests for button enabled/disabled states

  4. 4

    Adds operation tests that tap submit and cancel, then assert on stubOps.submitCalled and stubOps.cancelCalled

  5. 5

    Emits XCUIApplication extension with submitButton and cancelButton element accessors using uiTestingIdentifier values

출력

TaskFormUITests.swift with full test class, XCUIApplication extension, and notes on required .uiTestingIdentifier and .testDataTransporter additions to the view

설치

clawhub install foscomputerservices/fosmvvm-ui-tests-generator

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크