How can I use nunit-console on OS X?

I’ve got the bundled NUnit working with MonoDevelop-Unity, but I would like to automate some things using the command line. nunit-console comes with MonoDevelop-Unity at: MonoDevelop/Contents/Frameworks/Mono.framework/Versions/2.10.2/bin/nunit-console, but I don’t know how to call this from the console. How do I use it?

Give this a go:

/Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.2/bin/nunit-console

The bad news is that you cannot run unit-tests via command line if you use some UnityEngine native code like GameObject or even Debug.Log because it needs to be initialized and running.

But if you are running tests with pure .net

Just type

nunit-console path/to/your/dll and that will do the magic

Remember you need to build your solution before, you can use msbuild command

msbuild path/to/your/solution