Sets up, runs and reads Unity Test Framework tests (EditMode and PlayMode) for a Unity or Meta Quest project from the command line. Covers test assembly (.asmdef) layout, `unity test` in batch and CI, `test run` (Pipeline 0.9; `run_tests` in 0.8) against a live Editor, PlayMode runs on a Quest player, and summarizing NUnit3 or JUnit result XML with the bundled script. Use when asked to add or write unit tests, run tests headlessly or in CI, find out why tests fail, re-run failing tests, or summarize a test-results.xml.
Ships in Quest Core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Made by Navid Mirzaaghazadeh · part of unity-meta-quest-skills · MIT
The full flag reference for unity test (sharding, retries, --affected, coverage, JUnit) is in the
official unity-cli skill → references/build-run-test.md. The live-Editor test commands
(list_tests, run_tests, test_status) are in unity-pipeline. This skill is the workflow on
top: get a test assembly in place, choose where to run, read the results, fix, and repeat.
grep -h '"com.unity.test-framework"' <project>/Packages/manifest.json <project>/Packages/packages-lock.json
Unity templates normally include it. If it's missing, ask the user, then add it. With a live
Editor: unity command package add --project-path <project> -- --identifier com.unity.test-framework --confirm true
(then unity command package status). Headless: see unity-package-management.
Command names here are Pipeline 0.9's (<group> <name>). Pipeline 0.8 used single names:
package_add, package_status, set_autotick, list_tests, run_tests, test_status,
cancel_tests, editor_status (table in skills/meta-official/ERRATA.md). Check yours with
unity command --tag tests --project-path <project>.
Tests must be in an .asmdef that references nunit.framework.dll, UnityEngine.TestRunner and
UnityEditor.TestRunner. EditMode assemblies target only the Editor. A test assembly can't
reference Assembly-CSharp, so game code under test needs its own asmdef. Templates, layout and
starter tests: references/test-assemblies.md.
After writing or editing .asmdef / .cs files with a live Editor open, compile before running:
unity recompile --project-path <project> --format json # 0 ok, 6 compile errors (listed), 7 Editor unreachable
| Situation | Use | Why |
|---|---|---|
| Editor is open for this project | Live: unity command test run | Warm, about a second. A batch run can't open a project an Editor holds open |
| No Editor, local or CI | Batch: unity test | Clean process, report file, exit codes CI can trust |
| Need a real headset (XR subsystems, performance, input) | Player: -testPlatform Android | PlayMode tests built into a test player on the Quest |
| Check a live XR session end to end (gaze and pinch, hands, UI clicks, screenshots) without writing test code | meta-xr-operator-unity (Meta XR Operator, experimental) | The agent drives the running app in the XR Simulator or a Development build. It complements tests; it doesn't produce NUnit results |
unity status --project-path <project> --format json # state "ready"
unity command editor set_auto_tick --project-path <project> -- --enable true # keeps an unfocused Editor ticking
unity command test list --project-path <project> -- --mode editor
unity command test run --project-path <project> -- --mode editor --filter ScoreTests
unity command test run --project-path <project> -- --mode playmode --async_tests true
unity command test status --project-path <project> --format json # poll until "status":"completed"
mode: all | editor | playmode (EditMode and PlayMode were also accepted in
0.9.1-exp.1). filter_type: testName (default, partial match), assembly, category.
timeout is in seconds (default 300). Use test cancel to abort.unity-pipeline skill): when a selected test fails, test run may return
an opaque result. Re-run with a narrower --filter, or fall back to a batch run for the report.--timeout,
default 30). Run it with --async_tests true too, and poll test status (observed 2026-10-24).unity command script recompile, then poll
script recompile_status until completed or up_to_date; "compilationFailed":true lists
the errors. Old CS errors stay in the console buffer after a fix, so trust this status.unity command editor status for blocked_by_dialog and ask the user
to dismiss the dialog.PlayMode tests on an XR project (observed 2026-10-24, Meta XR Core 207.0.1, XR Simulator):
OVRManager.InputFocusLost at start. A correct focus pause
(VRC.Quest.Functional.2) then sets timeScale to 0 and every scaled-time test times out. Force
focus on in the test's setup (a test hook on your pause component).Time.unscaledDeltaTime), not frames.Time.maximumDeltaTime cap of 0.333 s.
fastest speed × Time.deltaTime.Debug.Log fails tests that use LogAssert.NoUnexpectedReceived()
("Unhandled log message: [Log] …"), not only errors. Gate device-only diagnostics on
!Application.isEditor, or expect them in the test.EditorSceneManager.OpenScene(path, OpenSceneMode.Additive).unity test)unity test <project> --mode EditMode --report-format nunit,junit \
--output test-results/editmode.xml --timeout 900 --format json
unity test <project> --mode PlayMode --output test-results/playmode.xml --timeout 1800 \
-- -testCategory "!Device" # forwarded Test Framework argument
0 all passed, 8 tests ran and some failed (don't retry), 6 no verdict
(compile error, license, crash, timeout, unknown platform; safe to retry once the cause is fixed),
2 bad flags. Under --format json the same split is in errors[0].code: TESTS_FAILED vs
TEST_RUN_ERROR / TEST_TIMED_OUT.-batchmode, -quit, -runTests, -testPlatform,
-testResults, -testFilter or -projectPath after --. The CLI rejects them.-- -nographics. Leave it off for PlayMode tests that render.--filter "Namespace.Fixture". Re-check failures cheaply with
--rerun-failed (reads the last NUnit report). Separate flaky tests from real failures with
--retries 2; a flaky test still exits 0 but is reported.--report-format nunit,junit writes NUnit to --output and JUnit next to it as .junit.xml.
CI dashboards ingest the JUnit file, and this skill's script reads either format.The Unity Test Framework runs PlayMode tests "on a Player built for the specified platform" when
-testPlatform is a BuildTarget name. Requirements: the PlayMode test asmdef includes Android
("includePlatforms": []), a headset is connected (adb devices lists it), and the Editor's
Android module is installed. The player reports back to the Editor, and Unity notes that both must
be reachable on the same network.
# Unity-documented Test Framework arguments, run on the Editor binary directly.
# Not tested against a Quest here; don't add -quit, which the Test Framework doesn't support
# while tests run.
"$UNITY_EDITOR_BIN" -runTests -batchmode -projectPath <abs project> -testPlatform Android \
-testResults <abs>/test-results/quest.xml -logFile <abs>/test-results/quest.log \
-playerHeartbeatTimeout 900
unity editors --installed --format json gives the Editor location. On macOS the binary is
<location>/Contents/MacOS/Unity. unity test --mode Android might forward the value the same
way, since the CLI passes --mode as -testPlatform, but Unity's docs only list
EditMode|PlayMode. Check unity test --help before relying on it.
python3 -I <this-skill>/scripts/summarize_test_results.py test-results/editmode.xml
python3 -I <this-skill>/scripts/summarize_test_results.py test-results/*.xml --json --max-failures 50
It prints totals per file and each failure's full name, assertion message and top stack lines
(with file:line). Exit 0 all passed, 1 failures, 2 unreadable file or zero test cases.
Zero cases usually means the filter matched nothing or the run aborted, so check the log.
Without the script: NUnit3 has a <test-run result=… total= passed= failed= skipped=> root, and
each failure is a <test-case fullname=… result="Failed"> with <failure><message> and
<stack-trace>. With --retries, test-results.retries.json lists flaky and failed tests.
unity recompile, then re-run just that test (--filter), then the
whole assembly. Batch: run unity test … --rerun-failed, then the full suite..unity or .prefab YAML to set up tests. Build fixtures in test code
(new GameObject, CreatePrimitive, loading prefabs from known paths).[Category("Device")] and exclude them from Editor and CI runs.8.test): https://docs.unity.com/en-us/unity-cli/unity-cli-reference.mdunity-cli skill → references/build-run-test.md (unity test flags, reserved args, retries, sharding): https://github.com/Unity-Technologies/skills/tree/main/skills/unity-cliunity-pipeline skill (run_tests caveat, set_autotick): https://github.com/Unity-Technologies/skills/tree/main/skills/unity-pipeline<group> <name> commands): https://docs.unity3d.com/Packages/[email protected]/manual/index.html (read 2026-10-25)Last verified: 2026-10-25 (Pipeline 0.9 names and the live-Editor loop, run against
Pipeline 0.9.1-exp.1 in a Unity 6000.6.6f1 project with 200+ EditMode and 20 PlayMode tests);
2026-10-17 (Operator row); 2026-10-16 (the rest). Not verified: unity test --mode Android, and on-device runs against a
real Quest. The summarizer was tested on sample NUnit3 and JUnit files only.
What SKILL.md sets; muted values are Claude Code's defaults
/quest-core:unity-test-runner-clifrom Quest Core
npx claudepluginhub mirzaaghazadeh/unity-meta-quest-skills --plugin quest-core27 skills in this plugin
/horizon-launch-roadmapPlan and sequence a Unity Meta Quest game launch on the Meta Horizon Store: which skill to use at each phase, the irreversible decisions (package name, signing key, Early Access, pre-order and Coming Soon windows, Data Use Checkup auto-approval, Meta VR Glasses input and targeting), and a dated timeline counting back from launch day (Coming Soon up to 360 days, pre-orders up to 90 days, submit at least 2 weeks ahead, release date at least 14 days out), plus post-launch growth tools (alerts, price A/B tests, Try Before You Buy). Use when the user asks "how do I publish my Quest game", "what's the release process", "plan my launch", "when should I submit", "can I do early access / pre-orders", "should I support Meta VR Glasses", or starts a new Quest game meant for the store./horizon-store-listing-assetsPrepare and validate a Meta Horizon Store product listing for a Quest game: exact art specs (covers, Hero, Logo, Icon, Spatialized tile, screenshots, trailer, 360 preview), asset VRCs, metadata limits, specs (play area, input, comfort), age group and IARC rating, privacy policy and Data Use Checkup, pricing, price A/B tests, Try Before You Buy, sales, bundles, promo codes, keys, Early Access, Coming Soon, pre-orders, Store analytics and alerts, and what Meta VR Glasses change. Use when the user asks for "store assets", "cover art size", "hero image dimensions", "screenshots for the Horizon Store", "trailer requirements", "store description", "age rating / IARC", "privacy policy for my Quest app", "set the price", "A/B test my price", "free trial", "run a sale", "generate keys", "early access", or "store analytics". Replaces the asset table in Meta's hz-store-submit, which has wrong dimensions and limits./horizon-store-publish-unityShip a Unity Meta Quest game build to the Meta Horizon Store: one-time Developer Dashboard setup (org verification, app record, App ID and credentials, Developer Distribution Agreement), Unity release-APK settings (IL2CPP, ARM64, target API 34, keystore signing, Bundle Version Code bump), a headless build with the Unity CLI, local APK verification, and upload with ovr-platform-util upload-quest-build (OBB, asset files/DLC, debug symbols) to ALPHA/BETA/RC/production, device targeting (Future devices for Meta VR Glasses, quest3+ channel suffix), promotion between channels, and CI. Use when the user says "upload my Quest build", "push to alpha/beta/RC", "release build for the Horizon Store", "bump the version code", "sign the APK", "ovr-platform-util", "upload-quest-build", "ship to Meta VR Glasses", "target Quest 3 only", or "set up CI for Quest uploads". Complements hz-store-submit (submission, review) and unity-quest-android-build (build routes, build failures)./horizon-vrc-checklistPre-submission audit of a Unity Meta Quest game against Meta's current Virtual Reality Checks (VRCs) for the Horizon Store, by VRC ID (VRC.Quest.Packaging/Performance/Functional/Security/Tracking/Input/Asset/ Privacy, VRC.Content, VRC.Publishing). Covers what to check in Unity code and settings, how to test each on a headset with metavr, adb and OVR Metrics Tool, and an evidence table showing pass/fail per VRC. Use when the user asks "will this pass review", "run the VRC checklist", "check store requirements", "why was my app rejected (VRC...)", "frame rate requirement", "focus awareness", "pause when headset removed", "entitlement check required?", "is my game ready for Meta VR Glasses", or before Submit for Review. Takes precedence over the generic VRC notes in Meta's hz-store-submit, which are partly out of date./hz-immersive-designerGuides design of comfortable, intuitive VR/MR experiences for Meta VR and Horizon OS — comfort guidelines, interaction patterns, spatial layout, accessibility. Use during UX design review or when evaluating comfort and accessibility. Build paths: Meta Spatial SDK, Unity, Unreal, native OpenXR, and WebXR; for 2D panel apps use hz-panel-designer if available. Use hz-quest-verify-first if the build path is unclear./hz-new-project-creationScaffolds new Meta VR and Horizon OS projects after the build path is selected — Standard Android, Meta Spatial SDK, Unity, Unreal, or WebXR. Use when creating a new Meta VR app from scratch. Build paths: all; use hz-quest-verify-first to choose the path.