# \#Unity-Test-Framework

**URL:** https://discussions.unity.com/tag/unity-test-framework/159605.md

[Latest](https://discussions.unity.com/latest.md) · [Categories](https://discussions.unity.com/categories.md) · [Tags](https://discussions.unity.com/tags.md)

---

## [Testing Framework: LogAssertion.Expect() select the LogScope to use](https://discussions.unity.com/t/testing-framework-logassertion-expect-select-the-logscope-to-use/1738613)

<div class="topic-metadata">

**Author:** [@InesCruz](https://discussions.unity.com/u/InesCruz)\
**Replies:** 0\
**Last updated:** [October 8, 2026, 11:49am UTC](https://discussions.unity.com/t/testing-framework-logassertion-expect-select-the-logscope-to-use/1738613 "2026-10-08T11:49:27Z")

</div>

Greetings! I have a series of tests, and I know that for a subset of them I would always expect and need a certain log message to appear for them to be successful. I can add LogAssert.Expect() to every single one of th…

---

## [MissingMethodException and Unknown Assembly when Running Standalone NUnit Launcher](https://discussions.unity.com/t/missingmethodexception-and-unknown-assembly-when-running-standalone-nunit-launcher/1722835)

<div class="topic-metadata">

**Author:** [@G\_hi3](https://discussions.unity.com/u/G_hi3)\
**Replies:** 4\
**Last updated:** [July 2, 2026, 10:25am UTC](https://discussions.unity.com/t/missingmethodexception-and-unknown-assembly-when-running-standalone-nunit-launcher/1722835 "2026-07-02T10:25:25Z")

</div>

Hi everyone, I’m using Rider to develop an extension to Unity that allows the developer to work with references. I’m using JetBrains Rider to develop it and I’ve been using unit tests to test some of the functions in th…

---

## [Fast-time simulation](https://discussions.unity.com/t/fast-time-simulation/1694141)

<div class="topic-metadata">

**Author:** [@rickappleton](https://discussions.unity.com/u/rickappleton)\
**Replies:** 6\
**Last updated:** [May 5, 2026, 3:48pm UTC](https://discussions.unity.com/t/fast-time-simulation/1694141 "2026-05-05T15:48:15Z")

</div>

Let’s say I’ve created my game, which is a rogue-lite with levels that take 15min to play. To test the rogue-lite element, I would like to simulate a run through the game automatically, by having an AI play the game inst…

---

## [Where is Unity.Entities.Tests?](https://discussions.unity.com/t/where-is-unity-entities-tests/1716975)

<div class="topic-metadata">

**Author:** [@PaulMDev](https://discussions.unity.com/u/PaulMDev)\
**Replies:** 4\
**Last updated:** [April 22, 2026, 1:47pm UTC](https://discussions.unity.com/t/where-is-unity-entities-tests/1716975 "2026-04-22T13:47:47Z")

</div>

While looking into how to write tests for ECS systems, I’ve seen mentions of the namespace Unity.Entities.Tests but I couldn’t find it in the current documentation. Does anyone know what happened to it? Is there an off…

---

## [VSCODE NUnit tests integration](https://discussions.unity.com/t/vscode-nunit-tests-integration/1716060)

<div class="topic-metadata">

**Author:** [@mGMM](https://discussions.unity.com/u/mGMM)\
**Replies:** 1\
**Last updated:** [April 10, 2026, 3:16pm UTC](https://discussions.unity.com/t/vscode-nunit-tests-integration/1716060 "2026-04-10T15:16:54Z")

</div>

Has anyone been able to get NUnit tests to be detected and debuggable in VS Code? This works out of the box in JetBrains Rider. The C# language server works, and I’m able to go to reference on everything including both U…

---

## [MPPM + Test Framework?](https://discussions.unity.com/t/mppm-test-framework/1708174)

<div class="topic-metadata">

**Author:** [@unity\_AE9CC64E013E75A5DF2A](https://discussions.unity.com/u/unity_AE9CC64E013E75A5DF2A)\
**Replies:** 7\
**Last updated:** [March 13, 2026, 6:27pm UTC](https://discussions.unity.com/t/mppm-test-framework/1708174 "2026-03-13T18:27:11Z")

</div>

Hi, I have set up a scenario with MPPM. It is possible to start it from an automated test and then ideally be able to make some assertions on what is going on in each instance? I believe the answer is “no” because MPPM…

---

## [Multiplayer Play Mode and Play Mode tests](https://discussions.unity.com/t/multiplayer-play-mode-and-play-mode-tests/1709503)

<div class="topic-metadata">

**Author:** [@Swiftle](https://discussions.unity.com/u/Swiftle)\
**Replies:** 5\
**Last updated:** [March 13, 2026, 6:25pm UTC](https://discussions.unity.com/t/multiplayer-play-mode-and-play-mode-tests/1709503 "2026-03-13T18:25:37Z")

</div>

Hello, I want to try automating some of the multiplayer testing. I have a series PlayMode tests that load scenes, run scenarios and report any errors. I wanted to try converting some of them to work in multiplayer. I’v…

---

## [Performance Test in a Async Editor Tests](https://discussions.unity.com/t/performance-test-in-a-async-editor-tests/1710421)

<div class="topic-metadata">

**Author:** [@Maeslezo](https://discussions.unity.com/u/Maeslezo)\
**Replies:** 4\
**Last updated:** [February 26, 2026, 8:51am UTC](https://discussions.unity.com/t/performance-test-in-a-async-editor-tests/1710421 "2026-02-26T08:51:48Z")

</div>

Hello, It is possible to do async editor tests Is it possible to run performance tests in Editor Async tests? Something like that \[Test, Performance\] public async Task EditorPerformanceTestAsync() …

---

## [Playmode tests crash because of Meta SDK](https://discussions.unity.com/t/playmode-tests-crash-because-of-meta-sdk/1708370)

<div class="topic-metadata">

**Author:** [@Maeslezo](https://discussions.unity.com/u/Maeslezo)\
**Replies:** 5\
**Last updated:** [February 18, 2026, 6:38pm UTC](https://discussions.unity.com/t/playmode-tests-crash-because-of-meta-sdk/1708370 "2026-02-18T18:38:18Z")

</div>

I have a pipeline running in Azure devOps This pipeline runs editor tests and playmode tests. Everything was working but after using Meta SDK I am having a crash in the playmode test. This is pretty weird because of t…

---

## [Batchmode licensing fails on Windows with Enterprise seat (no serial, Hub active) — LicensingClient IPC timeout / no .ulf](https://discussions.unity.com/t/batchmode-licensing-fails-on-windows-with-enterprise-seat-no-serial-hub-active-licensingclient-ipc-timeout-no-ulf/1706634)

<div class="topic-metadata">

**Author:** [@OswaldoApex](https://discussions.unity.com/u/OswaldoApex)\
**Replies:** 1\
**Last updated:** [January 30, 2026, 9:47pm UTC](https://discussions.unity.com/t/batchmode-licensing-fails-on-windows-with-enterprise-seat-no-serial-hub-active-licensingclient-ipc-timeout-no-ulf/1706634 "2026-01-30T21:47:09Z")

</div>

Environment OS: Windows 11 Unity Editor versions: 2021.3.16f1 (and tested same line) License type: Enterprise (seat assigned via Organization). I don’t have access to a serial number. Unity Hub: signed in with the Enter…

---

## [TestFramework doesn't validate attribute types](https://discussions.unity.com/t/testframework-doesnt-validate-attribute-types/1706509)

<div class="topic-metadata">

**Author:** [@redwyre](https://discussions.unity.com/u/redwyre)\
**Replies:** 1\
**Last updated:** [January 30, 2026, 4:21pm UTC](https://discussions.unity.com/t/testframework-doesnt-validate-attribute-types/1706509 "2026-01-30T16:21:51Z")

</div>

if you use the attributes \`PostBuildCleanupAttribute\` or \`PrebuildSetupAttribute\` but do not implement the appropriate interface (or remove it an forget to delete the attribute, oops), you get an obscure exception in the…

---

## [Splitting build and run via CLI](https://discussions.unity.com/t/splitting-build-and-run-via-cli/1692905)

<div class="topic-metadata">

**Author:** [@Larmo](https://discussions.unity.com/u/Larmo)\
**Replies:** 6\
**Last updated:** [November 21, 2025, 9:50pm UTC](https://discussions.unity.com/t/splitting-build-and-run-via-cli/1692905 "2025-11-21T21:50:39Z")

</div>

Hey all, I’m trying to create a build that would be similar to the player tests - execute tests on device, save results and close. I was able to implement it inside the Unity Editor UI by using this guide - How to run …

---

## [Unable to reference script from TestRunner](https://discussions.unity.com/t/unable-to-reference-script-from-testrunner/1694932)

<div class="topic-metadata">

**Author:** [@baconrad](https://discussions.unity.com/u/baconrad)\
**Replies:** 4\
**Last updated:** [November 16, 2025, 9:43pm UTC](https://discussions.unity.com/t/unable-to-reference-script-from-testrunner/1694932 "2025-11-16T21:43:14Z")

</div>

New to testing. Followed instructions in video but unable to reference script from a test. Have tried in both EditMode and PlayMode. I set up an assembly for both modes. Added an asmdef to my scripts folder and called it…

---

## [UNITY\_INCLUDE\_TESTS is defined during normal playmode](https://discussions.unity.com/t/unity-include-tests-is-defined-during-normal-playmode/1653505)

<div class="topic-metadata">

**Author:** [@Mfknudsen](https://discussions.unity.com/u/Mfknudsen)\
**Replies:** 3\
**Last updated:** [November 16, 2025, 10:00am UTC](https://discussions.unity.com/t/unity-include-tests-is-defined-during-normal-playmode/1653505 "2025-11-16T10:00:50Z")

</div>

I have a few test where some systems that use \[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)\] to initialize needs to be disable so that I can use setup and tear down in the test log…

---

## [Upgrade Unity Test Framework's NUnit dependency](https://discussions.unity.com/t/upgrade-unity-test-frameworks-nunit-dependency/1634907)

<div class="topic-metadata">

**Author:** [@Rabadash8820](https://discussions.unity.com/u/Rabadash8820)\
**Replies:** 1\
**Last updated:** [October 23, 2025, 9:52am UTC](https://discussions.unity.com/t/upgrade-unity-test-frameworks-nunit-dependency/1634907 "2025-10-23T09:52:52Z")

</div>

Hello! I would like to suggest that the Unity Test Framework update its NUnit dependency from 3.5 to 3.14. Currently (as of Unity 6000.0.30f1 anyway), UTF still depends on a “Custom NUnit” package that says it is “based…

---

## [Looking for opinions on a performance test regarding updating Transform](https://discussions.unity.com/t/looking-for-opinions-on-a-performance-test-regarding-updating-transform/1689818)

<div class="topic-metadata">

**Author:** [@Laicasaane](https://discussions.unity.com/u/Laicasaane)\
**Replies:** 3\
**Last updated:** [October 12, 2025, 5:35pm UTC](https://discussions.unity.com/t/looking-for-opinions-on-a-performance-test-regarding-updating-transform/1689818 "2025-10-12T17:35:35Z")

</div>

I’ve just made a test to verify some assumptions about the performance of multiple methods of updating Transforms. Details about the test are reported in this GitHub repo: The results however are so flabbergasted I hav…

---

## [Stuck writing tests with Unity Input System + Test Framework](https://discussions.unity.com/t/stuck-writing-tests-with-unity-input-system-test-framework/1683619)

<div class="topic-metadata">

**Author:** [@tschesky](https://discussions.unity.com/u/tschesky)\
**Replies:** 0\
**Last updated:** [September 15, 2025, 2:00pm UTC](https://discussions.unity.com/t/stuck-writing-tests-with-unity-input-system-test-framework/1683619 "2025-09-15T14:00:37Z")

</div>

Hey folks, I’m banging my head against the wall trying to get a minimal working integration test with the “new” Input System and the Unity Test Framework. My goal is simple: trigger an action and verify that a script in…

---

## [Problem with unit test with assembly in Unity (namespace...)](https://discussions.unity.com/t/problem-with-unit-test-with-assembly-in-unity-namespace/1682522)

<div class="topic-metadata">

**Author:** [@q1an05](https://discussions.unity.com/u/q1an05)\
**Replies:** 2\
**Last updated:** [September 8, 2025, 3:15pm UTC](https://discussions.unity.com/t/problem-with-unit-test-with-assembly-in-unity-namespace/1682522 "2025-09-08T15:15:44Z")

</div>

I have a Android XR project, now I want to add unit tests. I tried to use the Unity Test Framework, but the Test Runner window didn’t seem to have a “Create Test Folder” button or sth like that. So I right clicked in th…

---

## [\[Shamless plug\] new workshop focused on test automation best practices](https://discussions.unity.com/t/shamless-plug-new-workshop-focused-on-test-automation-best-practices/1681757)

<div class="topic-metadata">

**Author:** [@andrew-fray](https://discussions.unity.com/u/andrew-fray)\
**Replies:** 0\
**Last updated:** [September 2, 2025, 3:20pm UTC](https://discussions.unity.com/t/shamless-plug-new-workshop-focused-on-test-automation-best-practices/1681757 "2025-09-02T15:20:19Z")

</div>

\[I hope this appropriate content for Discussions! Let me know if there’s a better place for it\] I’m Andrew and I work with video game studios to help them get started with test automation, and for the first time I’m off…

---

## [Test Framework 1.5x can't be installed?](https://discussions.unity.com/t/test-framework-1-5x-cant-be-installed/1678059)

<div class="topic-metadata">

**Author:** [@CDF](https://discussions.unity.com/u/CDF)\
**Replies:** 2\
**Last updated:** [August 16, 2025, 3:29pm UTC](https://discussions.unity.com/t/test-framework-1-5x-cant-be-installed/1678059 "2025-08-16T15:29:46Z")

</div>

I recently noticed that a 1.5.1 version of the test framework was released here: But I cannot add it to my project? What’s going on here? Was it published then removed?

---

## [How to make sure test-only assets are not included in builds?](https://discussions.unity.com/t/how-to-make-sure-test-only-assets-are-not-included-in-builds/1675844)

<div class="topic-metadata">

**Author:** [@CodeSmile](https://discussions.unity.com/u/CodeSmile)\
**Replies:** 5\
**Last updated:** [August 9, 2025, 8:10am UTC](https://discussions.unity.com/t/how-to-make-sure-test-only-assets-are-not-included-in-builds/1675844 "2025-08-09T08:10:13Z")

</div>

I was trying to find whether there are ways to make test-only assets, but I came up empty. Specifically for “Player” tests where my hardcoded paths to files under Assets won’t work, and the assets in question aren’t incl…

---

## [Understanding Unity Debugging Tools 🛠️🖥](https://discussions.unity.com/t/understanding-unity-debugging-tools/1661715)

<div class="topic-metadata">

**Author:** [@val3d](https://discussions.unity.com/u/val3d)\
**Replies:** 0\
**Last updated:** [July 2, 2025, 4:20am UTC](https://discussions.unity.com/t/understanding-unity-debugging-tools/1661715 "2025-07-02T04:20:15Z")

</div>

Bugs and bottlenecks can be annoying. And how you handle them can make or break your production timeline. How are some debugging and profiling tools and strategies to leverage on: Catch issues early with Project Audi…

---

## [Tests in package installed by Unity Package Manager do not show up in Test Runner](https://discussions.unity.com/t/tests-in-package-installed-by-unity-package-manager-do-not-show-up-in-test-runner/1669303)

<div class="topic-metadata">

**Author:** [@cdr9042](https://discussions.unity.com/u/cdr9042)\
**Replies:** 1\
**Last updated:** [July 21, 2025, 9:23am UTC](https://discussions.unity.com/t/tests-in-package-installed-by-unity-package-manager-do-not-show-up-in-test-runner/1669303 "2025-07-21T09:23:18Z")

</div>

I’m making a package to be installed by Unity package manager. The tests scripts are here. If I place the package in Assets, it shows Tests in test runner normally. But if I install this package using Unity package ma…

---

## [Why test runner not working in Unity 6 Preview like in older Versions?](https://discussions.unity.com/t/why-test-runner-not-working-in-unity-6-preview-like-in-older-versions/1516530)

<div class="topic-metadata">

**Author:** [@GlaDos\_sae](https://discussions.unity.com/u/GlaDos_sae)\
**Replies:** 9\
**Last updated:** [June 5, 2025, 5:57pm UTC](https://discussions.unity.com/t/why-test-runner-not-working-in-unity-6-preview-like-in-older-versions/1516530 "2025-06-05T17:57:16Z")

</div>

I’m working on a Project in Unity 6 and the test Runner isn’t working. Unity 6 Version (6000.0.15f) .asmdef File { "name": "PlayModeTests", "rootNamespace": "", "references": \[ "UnityEngine.TestRunner", "Unity…

---

## [6.2 Beta fails to roll back test framework version](https://discussions.unity.com/t/6-2-beta-fails-to-roll-back-test-framework-version/1649354)

<div class="topic-metadata">

**Author:** [@synthc](https://discussions.unity.com/u/synthc)\
**Replies:** 1\
**Last updated:** [May 30, 2025, 12:51am UTC](https://discussions.unity.com/t/6-2-beta-fails-to-roll-back-test-framework-version/1649354 "2025-05-30T00:51:03Z")

</div>

I wanted to try out 6.2, but had to roll back to 6000.0.27f1 due to an incompatible asset. After rolling back, I found that Unity fails to revert the test framework version back from 1.5.1, causing a missing project dep…

---

## [TestRunner Statuses aren't updated until run is complete](https://discussions.unity.com/t/testrunner-statuses-arent-updated-until-run-is-complete/1638684)

<div class="topic-metadata">

**Author:** [@TheRobWatling](https://discussions.unity.com/u/TheRobWatling)\
**Replies:** 3\
**Last updated:** [May 8, 2025, 5:38am UTC](https://discussions.unity.com/t/testrunner-statuses-arent-updated-until-run-is-complete/1638684 "2025-05-08T05:38:37Z")

</div>

Hi, As of late I’ve noticed that when running playmode tests the green checkmarks for the root of the tests don’t appear until the full suite of tests has completed even if all the tests inside them have passed. In the …

---

## [Improving test framework iteration times](https://discussions.unity.com/t/improving-test-framework-iteration-times/1621035)

<div class="topic-metadata">

**Author:** [@AlvaroNostra](https://discussions.unity.com/u/AlvaroNostra)\
**Replies:** 9\
**Last updated:** [April 21, 2025, 4:13pm UTC](https://discussions.unity.com/t/improving-test-framework-iteration-times/1621035 "2025-04-21T16:13:39Z")

</div>

The test framework is a wonderful tool to validate projects. As its current state, however, iterating is painfully slow depending on how the project is setup (e.g, number of test assemblies). This is even worse when play…

---

## [Hard dependency on Test Framework 1.5?](https://discussions.unity.com/t/hard-dependency-on-test-framework-1-5/1632378)

<div class="topic-metadata">

**Author:** [@KomeijiSatorin](https://discussions.unity.com/u/KomeijiSatorin)\
**Replies:** 4\
**Last updated:** [April 20, 2025, 2:16pm UTC](https://discussions.unity.com/t/hard-dependency-on-test-framework-1-5/1632378 "2025-04-20T14:16:44Z")

</div>

Hi, Recently I bumped the editor version and all my test scripts was damaged. I was using the 2.0.1 version of the test framework but the recent editor versions seem to override it with 1.5. I cannot simply modify the m…

---

## [Unity Test Framework 2.0 ready for feedback](https://discussions.unity.com/t/unity-test-framework-2-0-ready-for-feedback/869511)

<div class="topic-metadata">

**Author:** [@thewerku](https://discussions.unity.com/u/thewerku)\
**Replies:** 131\
**Last updated:** [March 27, 2025, 9:41am UTC](https://discussions.unity.com/t/unity-test-framework-2-0-ready-for-feedback/869511 "2025-03-27T09:41:31Z")

</div>

Unity Test Framework v2.0 \[updated on May 2nd\] Hi everyone, we have a new experimental version of Unity Test Framework for you to try out in hope of getting feedback regarding the new features. At this point we have no…

---

## [Unity stuck on first test when hot reload happend](https://discussions.unity.com/t/unity-stuck-on-first-test-when-hot-reload-happend/1616016)

<div class="topic-metadata">

**Author:** [@IsGris](https://discussions.unity.com/u/IsGris)\
**Replies:** 0\
**Last updated:** [March 15, 2025, 7:31am UTC](https://discussions.unity.com/t/unity-stuck-on-first-test-when-hot-reload-happend/1616016 "2025-03-15T07:31:41Z")

</div>

I have zenject integration test class TestHealthComponent : ZenjectIntegrationTestFixture that looks like this: using Zenject; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; using System.Collecti…

[Next page](https://discussions.unity.com/tag/unity-test-framework/159605.md?match_all_tags=true&page=1&tags%5B%5D=Unity-Test-Framework)
