CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

testland/unity-test-framework

Use whenever C# code in a Unity game-engine project needs tests that use the Unity runtime or editor: Unity Test Framework EditMode vs PlayMode tests, [Test] and [UnityTest], assembly definitions, the Test Runner window, batch-mode command-line runs and CI. Not the ThrowTheSwitch C library.

Quality

83%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

attributes.mdreferences/

UTF attribute cheatsheet - reference

Attributes for unity-test-framework, per the v1.4 manual index and the NUnit 3.5 docs the framework wraps.

AttributePurposeSource
[Test]Plain NUnit test - synchronousNUnit; recommended default per edit-mode-vs-play-mode docs
[UnityTest]Coroutine-style test that can yield frames / seconds in PlayMode or skip frames in EditModeUTF-specific
[SetUp] / [TearDown]Per-test fixture setup / cleanupNUnit
[OneTimeSetUp] / [OneTimeTearDown]Once-per-fixture setup / cleanupNUnit
[TestFixture]Marks a class as containing tests (optional in NUnit 3)NUnit
[Category("Smoke")]Tag a test for filteringNUnit; selectable via CLI -testCategory
[UnityPlatform(RuntimePlatform.WindowsPlayer)]Restrict test to specific runtime platformsUTF-specific
[ValueSource(nameof(MyCases))]Parameterised inputsNUnit; ValueSource is supported per the v1.4 manual (other parameterised attributes have known limitations - see the skill's Limitations section)

SKILL.md

tile.json