Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计异常

finalrun-test-runner最终运行测试运行程序

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

306

周安装

13

GitHub Stars

公开资料未说明

下载量

107
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:finalrun-test-runner(最终运行测试运行程序)
来源仓库:https://github.com/final-run/agent-skills
仓库路径:skills/finalrun-test-runner
安装命令:
npx skills add https://github.com/final-run/agent-skills --skill finalrun-test-runner
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/final-run/agent-skills --skill finalrun-test-runner

简介

用于辅助测试设计、自动化测试、用例整理和回归验证。finalrun-test-runner 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合编写单元测试、端到端测试或根据失败日志定位问题。
  • 使用时需确认项目测试框架、运行命令和夹具数据,避免误改逻辑。
  • 涉及浏览器或外部服务时,应区分本地模拟与生产环境。
  • 安装前建议核对来源仓库和权限范围,确保安全合规使用。

SKILL.md

FinalRun Test Runner

Orchestrate FinalRun MCP tools to run mobile app tests on cloud or local devices.

MCP Preflight

Before any test operation:

  1. Run ping.
  2. If ping fails, the FinalRun MCP server may not be installed or configured. Ask the user to verify their MCP setup.
  3. Resume this workflow only after MCP is healthy.

Core Concepts

  • Test: A single automated flow (one scenario).
  • Test Suite: An ordered group of tests executed together on a device.
  • Test Runs: Historical execution records of tests or suites that already ran.

Your Only Job

  1. Find the test or suite to run
  2. Select the target device(s) — cloud or local
  3. Map the app binary — use an existing app, or upload a new one if not available
  4. Confirm the run plan with the user
  5. Execute the test run
For creating tests, see finalrun-generate-test. For updating or deleting tests, see finalrun-update-test.

Required Inputs

  • Run Test: test name + appMapping + one compatible device target (cloud or local)
  • Run Test Suite: suite name + appMapping + one compatible device target (cloud or local)

User Input & Credentials

Tests often require user-specific data such as login credentials, form values, environment URLs, or account details. Follow these rules:

  1. Never guess or fabricate credentials, emails, passwords, API keys, or environment-specific values.
  2. Ask the user before proceeding if any required test input is unknown — this includes but is not limited to:

- Login credentials (username, email, password) - Form field values (addresses, phone numbers, payment details) - Environment-specific URLs or endpoints - Account-specific data (user IDs, org names, project names)

  1. Ask early — identify required inputs during Step 1 (finding the test) and resolve them before Step 4 (confirming the run plan).
  2. Include provided values in the run plan confirmation so the user can verify them.
Not asking the user for unknown inputs is a blocker — do not skip this step.

Platform Compatibility Rule (Strict)

  • Android app upload -> Android devices only
  • iOS app upload -> iOS devices only
  • Never map Android app to iOS device, or iOS app to Android device
  • For platform and autoSelectPlatform parameters, use these exact values: Android or IOS
  • In prose, "iOS" and IOS refer to the same platform; use IOS only when setting MCP arguments.

Workflow Steps

Step 1 — Find the Test or Suite

Search for the test or suite to run:

Use MCP tool: list_tests
Arguments: { "search": "<test name keyword>" }

Or for suites:

Use MCP tool: list_test_suites
Arguments: { "search": "<suite name keyword>" }

If the test or suite doesn't exist, follow the finalrun-generate-test workflow to create it first.

Step 2 — Select Target Devices

Cloud devices:

Use MCP tool: list_supported_devices
Arguments: { "platform": "Android" }  # or "IOS"

Note the requirementId for the target device(s).

Local devices:

Use MCP tool: list_local_devices
Arguments: {}

Note the uuid for the target device. Ensure local prerequisites are met (see Local Run Prerequisites section).

Step 3 — Resolve App Mapping

Search for the app binary to use:

Use MCP tool: available_apps
Arguments: { "search": "<app name>", "platform": "Android" }  # or "IOS"
  • If app exists — if the user specified an upload, use that exact appId + appUploadId; otherwise, ask the user to choose the upload from the returned platform-compatible list
  • If no app is available — upload a new binary following the Upload Routing Rule below

Platform inference:

  • If app has uploads for only one platform — platform is already determined, select matching devices automatically without asking the user
  • If app has uploads for both platforms — ask the user which platform to run on

Enforce platform compatibility: Android app → Android device, iOS app → iOS device.

Step 4 — Confirm the Run Plan

Present the run plan to the user for confirmation:

  • Test or suite name to run
  • Target device(s) and platform
  • App binary version (appId + appUploadId)
  • Cloud or local execution

Do not start the run until the user confirms the plan.

Step 5 — Execute the Run

Cloud — Single Test:

Use MCP tool: run_test_by_name_on_devices
Arguments:
  testName: "<test name>"
  devices: [{ "cloudRequirementId": "<requirement-id>" }]
  appMapping: { "<appId>": "<appUploadId>" }

Cloud — Test Suite:

Use MCP tool: run_test_suite_by_name_on_devices
Arguments:
  testSuiteName: "<suite name>"
  devices: [{ "cloudRequirementId": "<requirement-id>" }]
  appMapping: { "<appId>": "<appUploadId>" }

Local — Single Test:

Use MCP tool: run_test_locally
Arguments:
  testName: "<test name>"
  deviceUUID: "<device-uuid>"
  appMapping: { "<appId>": "<appUploadId>" }

Local — Test Suite:

Use MCP tool: run_test_suite_locally
Arguments:
  testSuiteName: "<suite name>"
  deviceUUID: "<device-uuid>"
  appMapping: { "<appId>": "<appUploadId>" }

To stop a running local test:

Use MCP tool: stop_local_test_run
Arguments: { "testRunId": "<test-run-id>" }

Local Run Prerequisites

Before executing a Local Test Run or Local Test Suite Run:

  • Android: Ensure adb is installed. Verify by running which adb. If not present, install via Homebrew (brew install android-platform-tools) or Android Studio.
  • iOS: Ensure xcrun is available (mac only). Verify by running which xcrun. If not present, run xcode-select --install.

Upload Routing Rule

When user asks to upload a new build, always ask:

  • "Should this upload go to an existing app or a new app container?"
  • "Confirm platform: Android or iOS?"

Then follow:

  1. Existing app path

- Call available_apps - Filter/select by platform (Android or IOS) - Pick target app node by appId, then read its appName - Call create_app_version(appName, filePath) using that exact appName

  1. New app path

- Confirm platform (Android or IOS) - Call create_app(name, appKnowledge?) -> get appId - Call create_app_version(appName, filePath) to upload first version

App Mapping

When running a test or suite, appMapping is required.

Identity rules:

  • appId identifies the app container (the same app record that includes appName).
  • appUploadId identifies the uploaded version/build under that app.

Canonical format:

{ "appId": "appUploadId" }

Use available_apps response to get valid pairs.

Device Targeting

For cloud runs, each device target must include exactly one:

  • cloudRequirementId — from list_supported_devices, targets a specific cloud device
  • autoSelectPlatform (Android or IOS) — auto-assigns any available device of that platform

For local runs:

  • Use list_local_devices to discover connected devices
  • Provide deviceUUID from the discovered device

Decision flow:

  1. Ask: Local or Cloud run?
  2. Cloud → Ask: auto-select or specific device?

- Auto-select → use autoSelectPlatform (derived from app platform) - Specific → use list_supported_devices → pick cloudRequirementId

  1. Local → use list_local_devices → pick deviceUUID

Two-Phase Confirmation Pattern

For update/delete bulk actions in other workflows (for example, finalrun-update-test):

Step 1: Call without confirm=true -> receive preview + confirmationToken
Step 2: Call with confirm=true + confirmationToken -> execute

Always show preview to user before confirm.

This two-phase pattern does not apply to run_test_by_name_on_devices, run_test_suite_by_name_on_devices, run_test_locally, or run_test_suite_locally.

Error Recovery

  • Auth/connectivity issue -> call ping
  • "No test found matching" -> call list_tests with search
  • Upload failure -> verify absolute filePath
  • No devices found -> verify platform filter and casing

Quick Checklist

  • MCP connectivity verified via ping
  • Test or suite identified via list_tests / list_test_suites
  • Target device(s) selected (cloud or local)
  • Platform compatibility verified (Android↔Android, iOS↔iOS)
  • App mapping resolved via available_apps
  • Run plan confirmed with user
  • Test run executed

Related Skills

  • Creating tests: See finalrun-generate-test workflow
  • Updating or deleting tests: See finalrun-update-test workflow

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.12%
按下载量换算38

Claude

28.88%
按下载量换算31

Cursor

18.27%
按下载量换算20

Gemini CLI

9.74%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills