单声道为Android:哪个测试框架合作 [英] Mono for Android: Which Testing Frameworks work

查看:112
本文介绍了单声道为Android:哪个测试框架合作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个单声道为Android VS2010的项目,并添加NUnit的测试。

I have created a Mono for Android VS2010 project and added NUnit tests.

这似乎单声道为Android根据该职位从Xamarin不支持NUnit的: https://bugzilla.novell.com/show_bug.cgi?id=644813

It seems Mono for Android does not support NUnit according to this post from Xamarin: https://bugzilla.novell.com/show_bug.cgi?id=644813

是否有做运行在一个单声道的Andr​​oid项目时,任何测试框架?

Are there any testing frameworks that do run when in a Mono for Android project?

推荐答案

没有,NUnit的不工作,也没有做任何其他的框架。 monodroid和MonoTouch的的目的是提供一个.NET开发环境,可以让你在不同环境之间轻松地将业务逻辑。作为一个结果,你不能真正测试的android / ios的具体code,但你可以测试.NET通用业务逻辑code。在我写的monodroid项目,我创建3个项目的解决方案,一个是Android项目,另一个是一个.NET库,它拥有我所有的非Android特定逻辑和最后的项目是针对一个NUnit的测试库。网库。我再加入我的逻辑code文件与链接文件的Andr​​oid项目。 monodroid项目文件不能被测试,但.NET codeS文件链接到monodroid项目可以与你选择什么都框架进行测试。

no, nunit does not work nor do any other frameworks. the intent of monodroid and monotouch is to provide a .net development environment that allows you to easily port business logic between different environments. as a result you can't really test android/ios specific code, but you can test generic .net business logic code. in the monodroid projects that i write, i create 3 projects in the solution, one is the android project, another is a .net library that holds all of my non-android specific logic and the final project is a nUnit test library against the .net library. I then add my logic code files into the android project with linked files. monodroid project files can not be tested, but .net codes files linked into monodroid projects can be tested with what ever framework you choose.

这篇关于单声道为Android:哪个测试框架合作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆