unity-test

Run Unity EditMode and PlayMode tests asynchronously and poll job results.

8|1|Updated Oct 7, 2025
One-click install
npx skills add https://github.com/Zzulin/unity-project01 --skill unity-test-zzulin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-test
Source: https://github.com/Zzulin/unity-project01/tree/main/URP1/Plugins/Unity-Skills-main/SkillsForUnity/unity-skills~/skills/test
Command: npx skills add https://github.com/Zzulin/unity-project01 --skill unity-test-zzulin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured way to run, list, and inspect Unity EditMode and PlayMode tests while handling asynchronous job-based execution and result polling so developers can validate code and catch regressions quickly.

Core Features & Use Cases

  • List and Filter Tests: Enumerate available tests by mode and name filter to identify what to run.
  • Run Tests Asynchronously: Start test runs that return a jobId for polling, run by name or with filters, and cancel running jobs when needed.
  • Create Test Templates: Generate EditMode and PlayMode test script templates to bootstrap unit tests and integrate with debugging flows for compilation checks.
  • Use Case: Integrate into CI or local validation by running EditMode tests after code changes, poll test_get_result for job completion, and fetch summaries to determine pass/fail rates.

Quick Start

Run all EditMode tests and return the job ID and a summary of results.

Frequently Asked Questions about unity-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Unity tests asynchronously and get job results?

Run Unity tests asynchronously by initiating a test run that returns a jobId for polling. You then poll the test result endpoint using this jobId to fetch summaries and determine pass or fail rates upon job completion.

Can I filter Unity EditMode and PlayMode tests by name before running?

Yes, you can enumerate available tests by mode and apply a name filter to identify specific tests. This allows you to run targeted Unity test suites by name or filter criteria instead of executing the entire project test suite.

What is the best way to integrate Unity unit tests into a CI pipeline?

Integrate Unity tests into CI by running EditMode tests after code changes and polling the asynchronous job results. Start a test run to get a jobId, poll for completion, and fetch summaries to validate code and catch regressions quickly.

Does this support creating templates for Unity PlayMode and EditMode tests?

Yes, it supports generating EditMode and PlayMode test script templates to bootstrap unit tests. This integrates with debugging flows to perform compilation checks and helps structure new test creation within Unity projects.

Why does my Unity test run return a jobId instead of immediate results?

A Unity test run returns a jobId because the execution is handled as an asynchronous job. You must poll this jobId to check the job status and retrieve the final test summaries once the background execution completes.

How do I cancel a running Unity test job?

You can cancel running Unity test jobs during the asynchronous polling phase. Since test runs execute as background jobs, use the job management features to terminate the active process before it naturally completes.