- Home /
Which version of NUnit ships with Unity? Can't find [TestFixtureSource] attribute.
Where can I find which version of NUnit is shipped by Unity with the Editor Test Tools? I was trying to use the [TestFixtureSource] attribute, but it couldn't be found in the NUnit namespace, so apparently Unity uses a modified or older version of NUnit (too bad...).
Answer by fafase · May 24, 2016 at 11:03 PM
http://docs.unity3d.com/Manual/testing-editortestsrunner.html
"The Editor Tests Runner is an implementation of the open source NUnit library - a well-known unit testing library for .Net languages. More information about NUnit can be found on http://www.nunit.org/. The implementaion is based on version 2.6.4."
Can I use a newer version of NUnit as a plugin and make the Editor Tests Window work with it? I'd really like to have some of the never features, but if possible I'd also like to keep the nice integration into Unity. Are there any plans by Unity to update this in future releases?
You could try to download the dll and add it in the Editor folder. Though I would expect a namespace conflict.
Answer by ykeyani · Dec 30, 2017 at 05:11 PM
If anyone is googling this with version 2017.3, it looks like its using version 3.5 now.
Answer by PanayotCankov · Jul 02, 2018 at 09:17 AM
I am writing some tests that capture images in "PlayMode" and it works pretty well. I wanted to add them using NUnit TestContext.AddTestAttachment method that is available in 3.8 or something. I tried to replace all nunit.framework.dll and .xml in the Unity installation but tests crash with: MissingMethodException: Method not found: 'NUnit.Framework.Internal.Reflect.set_MethodCallWrapper' at "../Runtime/Export/Coroutines.cs". So I guess Unity is doing some work to update the testrunner and match with new NUnit versions.
When can we have NUnit 3.9? I would love to attach actual/diff/expected set of images as attachments to tests:
Your answer
Follow this Question
Related Questions
Asynchronous testing with NUnit? 0 Answers
Can Unity 5.6's Test Runner optionally output NUnit 2 xml format? 2 Answers
How to prevent Unity from deleting additional Projects in Solution 2 Answers
NUnit delayed constraint does not appear to work in playmode test 0 Answers
MSTools instead of NUnit 0 Answers