AgentSkillsCN

uloop-run-tests

执行Unity测试运行器。适用于运行单元测试、验证代码变更、检查测试结果,或当用户要求运行测试时使用。返回包含通过/失败计数的测试结果。

SKILL.md
--- frontmatter
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

bash
uloop run-tests [options]

Parameters

ParameterTypeDefaultDescription
--test-modestringEditModeTest mode: EditMode, PlayMode
--filter-typestringallFilter type: all, exact, regex, assembly
--filter-valuestring-Filter value (test name, pattern, or assembly)
--save-xmlbooleanfalseSave test results as XML

Examples

bash
# 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.