unity-tests-run · git:20260306.fe7d728 · 2026-03-06 · sha256 7def24e96e5efb3b
unity-tests-run git:20260306.fe7d728A
Immutable. This exact content is served forever at /api/v1/blob/7def24e96e5efb3b.
---
name: unity-tests-run
description: Run Unity Test Framework tests via CLI batchmode with auto-detection of Unity installation
arguments:
- name: platform
description: "Test platform: EditMode, PlayMode (default: EditMode)"
required: false
- name: category
description: "Test category filter (semicolon-separated, e.g., 'E2E;Integration')"
required: false
- name: filter
description: "Test name filter (semicolon-separated or regex, e.g., 'MonoBuild')"
required: false
---
# Run Unity Tests
Run Unity Test Framework tests using the `unity-test-runner` agent.
Spawn the `unity-test-runner` agent to execute the tests. Pass along any arguments the user provided:
- Platform: `$ARGUMENTS.platform` (or EditMode if not specified)
- Category: `$ARGUMENTS.category` (if provided)
- Filter: `$ARGUMENTS.filter` (if provided)
The agent will:
1. Auto-detect the Unity project path from the current working directory
2. Auto-detect the Unity editor installation via Unity Hub CLI
3. Run the tests in batchmode
4. Report results with pass/fail summary and failure details
## Usage Examples
```
/unity-tests-run # Run all EditMode tests
/unity-tests-run PlayMode # Run all PlayMode tests
/unity-tests-run EditMode E2E # Run EditMode tests in E2E category
/unity-tests-run EditMode "" MonoBuild # Run tests matching "MonoBuild" filter
```