unity-tests-write

Create EditMode and PlayMode tests for Unity using NUnit assertions.

6|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/DmitriyYukhanov/claude-plugins --skill unity-tests-write
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-tests-write
Source: https://github.com/DmitriyYukhanov/claude-plugins/tree/main/plugins/unity-dev/skills/unity-tests-write
Command: npx skills add https://github.com/DmitriyYukhanov/claude-plugins --skill unity-tests-write

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing robust and maintainable tests for Unity projects, ensuring code quality and stability.

Core Features & Use Cases

  • Test Framework Guidance: Provides patterns and best practices for Unity Test Framework, covering EditMode, PlayMode, and async tests.
  • Structure and Conventions: Offers clear guidance on project test structure, naming conventions, and setup/teardown procedures.
  • Performance and Coverage: Includes instructions for performance testing and code coverage analysis.
  • Use Case: You need to write a new PlayMode test for a complex character controller script. This Skill will guide you on the correct structure, async handling, and assertions to ensure the test is effective and maintainable.

Quick Start

Use the unity-tests-write skill to generate an EditMode test for a given Unity script.

Frequently Asked Questions about unity-tests-write

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

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

To write Unity tests for PlayMode and EditMode scenarios, follow Unity Test Framework best practices using NUnit assertions and the Arrange-Act-Assert pattern to structure robust and maintainable test suites.

What is the best way to structure async Unity tests for a character controller?

The best way to structure async Unity tests for a character controller is to apply Unity Test Framework patterns that handle async operations, ensuring PlayMode tests execute correctly while validating game logic.

Can I use NUnit assertions for performance and code coverage testing in Unity?

Yes, you can use NUnit assertions for performance and code coverage testing in Unity by adhering to Unity Test Framework conventions, which include specific instructions and setup patterns for measuring performance and analyzing coverage.

Does the Unity Test Framework support integration tests with setup and teardown procedures?

Yes, the Unity Test Framework supports integration tests with setup and teardown procedures by offering clear guidance on project test structure and naming conventions, ensuring tests are properly isolated and maintainable.

When should I use EditMode tests instead of PlayMode tests in Unity?

You should use EditMode tests instead of PlayMode tests in Unity when validating isolated game logic that does not require the runtime environment, whereas PlayMode tests are necessary for testing complex behaviors like character controllers.