unity-testing

Guide Unity EditMode and PlayMode test authoring with templates and patterns.

Updated Jan 2, 2026
One-click install
npx skills add https://github.com/jwmyers/vui-vux-plugins --skill unity-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-testing
Source: https://github.com/jwmyers/vui-vux-plugins/tree/main/plugins/zero-day-dev/skills/unity-testing
Command: npx skills add https://github.com/jwmyers/vui-vux-plugins --skill unity-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Unity projects often struggle with implementing robust tests for both EditMode and PlayMode, leading to fragile code and slow feedback loops.

Core Features & Use Cases

  • Clear guidance for organizing tests in Assets/Tests/Editor and Assets/Tests/Runtime
  • Templates and examples for common NUnit and Unity TestTools patterns
  • Best practices for test naming, categorization, setup/teardown, and isolation

Quick Start

Open the Unity Test Runner and begin by implementing EditMode tests using the templates in the references folder.

Frequently Asked Questions about unity-testing

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

FAQPage Schema
How do I structure Unity tests for both EditMode and PlayMode scenarios?

Structure Unity tests by separating them into Assets/Tests/Editor for EditMode and Assets/Tests/Runtime for PlayMode scenarios. This organization ensures clear test locations, reliable isolation, and faster feedback loops across different NUnit and Unity TestTools patterns.

What is the difference between EditMode and PlayMode tests in Unity?

EditMode tests run without the Unity engine fully active, allowing fast validation of pure logic, while PlayMode tests execute within the runtime environment to validate behaviors. Using both modes ensures robust test coverage for your Unity project's components and patterns.

How do I set up setup and teardown patterns in NUnit tests for Unity?

Set up and teardown patterns in NUnit tests for Unity by using standard attributes like SetUp and TearDown within your test classes. Applying these patterns ensures proper test isolation and maintains reliable state initialization across your EditMode and PlayMode test suites.

Does this approach support running tests via Unity Editor and MCP?

Yes, this approach supports running tests via Unity Editor and MCP. You can author, validate, and execute your test structures directly within the Unity Test Runner, ensuring your NUnit assertions and test patterns function correctly across both environments.

What are the best practices for Unity test naming conventions and categorization?

Best practices for Unity test naming conventions and categorization involve using clear, descriptive names and NUnit attributes to group tests. Following these conventions improves test maintainability and helps quickly identify failures within your EditMode and PlayMode test structures.