uloop-run-tests

hatayama 的头像作者 hatayama

通过uloop CLI执行Unity测试运行器。当您需要:(1)运行单元测试(EditMode测试),(2)运行集成测试(PlayMode测试),(3)验证代码更改不会破坏现有功能时使用。

📖 中文导读:通过uloop CLI执行Unity测试运行器。当您需要:(1)运行单元测试(EditMode测试),(2)运行集成测试(PlayMode测试),(3)验证代码更改不会破坏现有功能时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: uloop-run-tests description: "Execute Unity Test Runner. Use when: running unit tests, verifying code changes, checking test results, or when user asks to run tests. Returns test results with pass/fail counts."

uloop run-tests

Execute Unity Test Runner.

Usage

uloop run-tests [options]

Parameters

Parameter Type Default Description
--test-mode string EditMode Test mode: EditMode, PlayMode
--filter-type string all Filter type: all, exact, regex, assembly
--filter-value string - Filter value (test name, pattern, or assembly)
--save-xml boolean false Save test results as XML

Examples

# Run all EditMode tests
uloop run-tests

# Run PlayMode tests
uloop run-tests --test-mode PlayMode

# Run specific test
uloop run-tests --filter-type exact --filter-value "MyTest.TestMethod"

# Run tests matching pattern
uloop run-tests --filter-type regex --filter-value ".*Integration.*"

Output

Returns JSON with test results including pass/fail counts and details.