tools-unity-test-framework

tools-unity-test-framework is a skill for Claude Code from tjboudreaux/cc-plugin-unity-gamedev. It costs 27 tokens per session (3,502 once invoked), scanned A, a copy of tools-unity-test-framework, MIT.

A guide to testing Unity projects with the Unity Test Framework, which uses NUnit-based tests. It covers EditMode tests that run quickly without the game and PlayMode tests that run through Unity’s runtime lifecycle.

In plain words
What is it for?
Writing unit and integration tests, checking MonoBehaviour lifecycle behavior, organizing test assemblies, and adding tests to CI/CD quality gates.
Why use it?
It helps organize automated checks for game logic and runtime behavior, including asynchronous code and mocked dependencies.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the unity-gamedev plugin — 21 skills shipped together

Good fit Writing unit and integration tests, checking MonoBehaviour lifecycle behavior, organizing test assemblies, and adding tests to CI/CD quality gates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tjboudreaux/cc-plugin-unity-gamedev/tools-unity-test-framework
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tjboudreaux/cc-plugin-unity-gamedev --skill tools-unity-test-framework
Clone the repo
git clone --depth 1 https://github.com/tjboudreaux/cc-plugin-unity-gamedev

Made for: Claude Code.

Or install unity-gamedev, the plugin that ships this one along with the rest of its 21 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tools-unity-test-framework

README.md
[![agentmods](https://agentmods.dev/badge/skills/tjboudreaux/cc-plugin-unity-gamedev/tools-unity-test-framework.svg)](https://agentmods.dev/skills/tjboudreaux/cc-plugin-unity-gamedev/tools-unity-test-framework)
Your own site
<a href="https://agentmods.dev/skills/tjboudreaux/cc-plugin-unity-gamedev/tools-unity-test-framework"><img src="https://agentmods.dev/badge/skills/tjboudreaux/cc-plugin-unity-gamedev/tools-unity-test-framework.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.03502
Opus 5 $0.00014 $0.01751
Sonnet 5 $0.00005 $0.00700
Haiku 4.5 $0.00003 $0.00350

Measured 8d ago against content hash 823510af524e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tools-unity-test-framework scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to tools-unity-test-framework — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/tools-unity-test-framework/SKILL.md · 684 lines

How it starts

The opening of the file, as written. The whole thing — 684 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Unity Test Framework

Overview

Unity Test Framework provides NUnit-based testing for Unity with EditMode (fast, no runtime) and PlayMode (full Unity lifecycle) test support.

When to Use

  • Unit testing game logic
  • Integration testing systems
  • Testing MonoBehaviour lifecycle
  • Automated regression testing
  • CI/CD test gates

Test Assembly Setup

Assembly Definition (EditMode)

// Tests/Editor/MyGame.Tests.Editor.asmdef
{
    "name": "MyGame.Tests.Editor",
    "rootNamespace": "MyGame.Tests",
    "references": [
        "MyGame.Core",
        "MyGame.Gameplay",
        "VContainer",
        "UniTask"
    ],
    "includePlatforms": [
        "Editor"
    ],
    "excludePlatforms": [],
    "allowUnsafeCode": false,
    "overrideReferences": true,
    "precompiledReferences": [
        "nunit.framework.dll",
        "NSubstitute.dll"
    ],
    "autoReferenced": false,
    "defineConstraints": [
        "UNITY_INCLUDE_TESTS"
    ],
    "versionDefines": [],
    "noEngineReferences": false
}

Assembly Definition (PlayMode)

// Tests/Runtime/MyGame.Tests.Runtime.asmdef
{
    "name": "MyGame.Tests.Runtime",
    "references": [
        "MyGame.Core",
        "MyGame.Gameplay",
        "VContainer",
        "UniTask"
    ],
    "includePlatforms": [],
    "excludePlatforms": [],
    "overrideReferences": true,
    "precompiledReferences": [
        "nunit.framework.dll",
        "NSubstitute.dll"
    ],
    "defineConstraints": [
        "UNITY_INCLUDE_TESTS"
    ]
}

EditMode Tests

Basic Test Structure

using NUnit.Framework;

namespace MyGame.Tests
{
    [TestFixture]
    public class DamageCalculatorTests
    {
        private DamageCalculator _calculator;
        
        [SetUp]
        public void SetUp()
        {
            _calculator = new DamageCalculator();
        }
        
        [TearDown]
        public void TearDown()
        {
            _calculator = null;
        }
        
        [Test]
        public void CalculateDamage_WithCrit_DoublesBaseDamage()
        {
            // Arrange
            var baseDamage = 100;
            var isCrit = true;
            
            // Act
            var result = _calculator.Calculate(baseDamage, isCrit);
            
            // Assert
            Assert.AreEqual(200, result);
        }
        
        [Test]
        public void CalculateDamage_NoCrit_ReturnsBaseDamage()
        {
            var result = _calculator.Calculate(100, false);
            Assert.AreEqual(100, result);
        }
    }
}

Read the full file on GitHub · 684 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 684 lines · 27 tokens per session scan A 823510af524e

Subscribe to this mod's changes

tools-unity-test-framework is a skill published in the GitHub repository tjboudreaux/cc-plugin-unity-gamedev (8 stars, last pushed 7mo ago), licensed MIT. It adds 27 tokens to every session and 3,502 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to tools-unity-test-framework, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

unity-agent-workflows

Use for AI-assisted Unity work that needs live repo discovery, project-derived routing, runtime-owner proof, runtime-visible output hard stops, runtime numeric proof for repeated visible-output failures, state-step guards, multi-agent scope ownership, modular C#/asmdef safety, UI/scene/visual asset gates, data-first…

hashgraph-online/awesome-codex-plugins · 146 tokens

testing-bgs-modpack

A checklist and decision guide for checking a newly installed batch of Bethesda Game Studios game modifications before accepting it as ready.

hashgraph-online/awesome-codex-plugins · 101 tokens

prototype

Concept prototype — validate the core idea is worth designing before writing GDDs. Run right after /brainstorm and /setup-engine. Routes to HTML, Engine, or Paper path based on game type. Produces a throwaway build and a PROCEED/PIVOT/KILL verdict.

Donchitos/Claude-Code-Game-Studios · 61 tokens

sprite-gen

Generate clean 2D game sprites and animation atlases with a component-row pipeline: base identity, numeric sprite-request SSoT, per-state layout guides, image-gen row strips, chroma-key alpha cleanup, connected-component frame extraction, cell-based atlas composition, QA reports, and runtime manifest framelayout. Its…

aldegad/sprite-gen · 291 tokens