返回顶部
n

native_automation

Apple Native Automation & Testing Skill

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
79
下载量
0
收藏
概述
安装方式
版本历史

native_automation

# Native Automation Skill > **Philosophy**: Use Apple's first-party tools (XCTest, XCUITest, Instruments) as the source of truth for quality. ## Capabilities 1. **Unit Testing Logic**: fast, isolated logic verification. 2. **UI Testing**: End-to-end user flow verification. 3. **Snapshot Testing**: Visual regression testing. 4. **Performance Testing**: XCTMetric verification. 5. **Accessibility Testing**: Automated audit via XCUITest. 6. **Hero Flow Verification**: Integrated critical path testing (Input -> Process -> Connect). ## Usage ### 1. Execute Tests via Script Always use the wrapper script to ensure correct scheme and destination settings. ```bash ./tools/run_native_tests.sh [mode] ``` **Modes:** - `unit`: Run unit tests only (Logic layer). - `ui`: Run UI tests only (Interaction layer). - `fast`: Run unit + critical UI paths. - `full`: Run ALL tests (including performance and snapshots). ### 2. Writing Tests - **Unit**: Inherit from `XCTestCase`. Use `XCTAssert...`. - **UI**: Inherit from `XCTestCase`. Use `XCUIApplication`. - **Performance**: Use `measure(metrics:options:block:)`. ## Best Practices - **Isolation**: Reset state before each UI test (`app.launchArguments += ["-reset"]`). - **Accessibility**: Use `app.buttons["identifier"]` over static texts. - **Concurrency**: Use `XCTestExpectation` for async code.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 native-automation-1776022981 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 native-automation-1776022981 技能

通过命令行安装

skillhub install native-automation-1776022981

下载 Zip 包

⬇ 下载 native_automation v1.0.0

文件大小: 1.49 KB | 发布时间: 2026-4-13 11:10

v1.0.0 最新 2026-4-13 11:10
Initial release of the Native Automation Skill.

- Provides a unified approach to Apple platform testing using first-party tools (XCTest, XCUITest, Instruments).
- Supports unit, UI, snapshot, performance, and accessibility testing for iOS and macOS projects.
- Introduces script-based test execution with multiple testing modes (unit, ui, fast, full).
- Documents best practices for isolation, accessibility, and concurrency in tests.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部