- Home /
Unit Test Tools and building from MonoDevelop
Hi,
I'm trying to use Unity Test Tools. I created a new project, imported it from the asset store and ran the unit test. No errors so far. But if I try to build in MonoDevelop (or in emacs using omnisharp plugin), it tells me that it cannot find NUnit:
/Users/sean/workspace/deleteme/Assets/UnityTestTools/UnitTesting/Editor/NUnit/Renderer/TestLine.cs: The type or namespace name 'NUnit' could not be found. Are you missing a using directive or an assembly reference?
In MonoDevelop I went to Project -> Edit References and added nunit.core, nunit.framework, nunit.core.interfaces (all provided by MonoDevelop-Unity). Then it said it couldn't find Mono.Cecil, I added that too.
Now it tells me it cannot find Mono.Cecil.Mdb which I cannot find in the list of packages of "Edit References"
Shouldn't it already be there? Where should I get it from?
Also these changes made in MonoDevelop do not persist and Unity seems to overwrite them when syncing the solution. Do I have to add them every time manually?
Thanx :)
EDIT: I'm using Unity 5.0.0f4 personal on OSX Yosemite
Answer by seansh · Jun 14, 2015 at 07:27 AM
Finally found the answer here: https://bitbucket.org/Unity-Technologies/unitytesttools/issue/34/the-type-or-namespace-nunit-could-not-be
Your answer
Follow this Question
Related Questions
Is there a way to use Nunit with Unity in Monodevelop ? 10 Answers
Configurations for Moq or another mock testing framework 0 Answers
Unity 5.6 Unit Testing 1 Answer
Unit Testing Rigidbody2D without polluting scene with gameobjects 1 Answer
How to import plugins inside tests in Unity Test Runner 1 Answer