Configuring the NUnit command line to run MonoTouch tests

此生再无相见时 提交于 2019-12-02 03:25:24

There isn't a good way to use NUnit with MonoTouch.

  • There isn't currently an NUnit test runner that will run on the iPhone or in the simulator
  • You can test MonoTouch dlls with NUnit running on the Mac with Mono, but you can't use any iOS libraries from those assemblies. This means you can't test your controllers, only backend Model logic with no UIKit stuff.

Sorry, I have felt the same pain myself. I will post back if a solution ever surfaces.

set $MONO_PATH to the nunit library to be able to run nunit-console. On my machine, the $MONO_PATH declaration is (in my .profile file):

MONO_PATH='/Applications/Beta/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/NUnit/:$MONO_PATH'

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!