What problem does it solve?
This reference codifies a test-driven development workflow and testing standards for a modular Unity project to prevent regressions, false-green tests, and inconsistent test patterns across packages.
Core Features & Use Cases
- TDD Mandate & Coverage: Requires writing tests first and driving toward 100% coverage for changes.
- Framework Patterns: Provides NUnit, NSubstitute, UniTask, MessagePipe, and VContainer guidance and templates for EditMode and PlayMode tests.
- Anti-patterns & Guardrails: Lists forbidden patterns (false greens, swallowing exceptions, changing expectations) and a decision flow for root-cause fixes.
- Mock & Fixture Utilities: Describes MockFactory and TestFixtures helpers for creating common test doubles and ScriptableObject data.
- Use Case: Use when adding or modifying package code to author tests first, validate behavior in CI, and eliminate flaky or misleading test results.
Quick Start
Add an EditMode test following the Test File Template, run the package Tests, and confirm the new test passes while avoiding forbidden workaround patterns.