AgentSkillsCN

uloop-run-tests

通过 uloop CLI 执行 Unity 测试运行器。适用于以下场景:(1)运行单元测试(EditMode 测试);(2)运行集成测试(PlayMode 测试);(3)验证代码变更不会破坏现有功能。

SKILL.md
--- frontmatter
name: uloop-run-tests
description: Execute Unity Test Runner via uloop CLI. Use when you need to: (1) Run unit tests (EditMode tests), (2) Run integration tests (PlayMode tests), (3) Verify code changes don't break existing functionality.

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.