您会为J2ME建议哪些单元测试框架? [英] What unit-test frameworks would you recommend for J2ME?

查看:59
本文介绍了您会为J2ME建议哪些单元测试框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对J2ME比较陌生,即将开始我的第一个严肃项目.我在测试方面的经验也不太丰富.我正在寻找J2ME的单元测试框架.

I'm relatively new to J2ME and about to begin my first serious project. My experience in testing isn't too deep either. I'm looking for a unit test framework for J2ME.

到目前为止,我已经看过J2MEUnit,但是现在我还没有很好地支持它.我已经看过JavaTest Harness,但是我不知道这不是矫kill过正.

So far I've seen J2MEUnit, but I don't now how well supported it is. I've seen JavaTest Harness but I don't know if it's not an overkill.

请告诉我您针对以下内容建议的框架:
*实施测试的简便性
*支持社区和工具
*与应用程序认证过程的兼容性
*与IDE集成(Eclipse,NetBeans)
*您认为重要的其他方面...

Please tell me what framework you suggest with respect to:
* Simplicity of implementing tests
* Supporting community and tools
* Compatibility with application certification processes
* Integration with IDEs (Eclipse, NetBeans)
* Other aspects you find important...

谢谢, Asaf.

推荐答案

This is a blog entry of a spanish company who makes movile games. Compares many frameworks and the conclusion is (translated):

  • MoMEUnit优惠非常有用 有关测试的信息.是 易于移植并且与Ant兼容.一种 劣势(也许不是),其 它需要每个测试班 有一个独特的测试方法,使用 很多继承.

  • MoMEUnit Offer very useful information about the tests. Is easily ported and Ant compabile. A disadvantage (or maybe not), its that it needs that every test class have an unique test method, using a lot of inheritance.

JMEUnit. (J2MEUnit的未来合并 和JMUnit)JMUnit不支持 Ant但是界面类似于 MoMEUnit. J2MEUnit不提供 与非常有用的信息 测试.两者中的测试创建 框架有点复杂. J2MEUnit确实支持Ant.那是 为什么两个框架合并 将会非常有趣(他们有 在int上工作了一年多 少一点)

JMEUnit. (Future merge of J2MEUnit and JMUnit) JMUnit doesn't supports Ant but the interface is similar to MoMEUnit. J2MEUnit doesn't provide very useful information with the tests. Test creation in both frameworks is somehow complex. J2MEUnit does support Ant; thats why the merge of both frameworks will be very interesting(they have been working on int for a year more o less)

我的经验:由于J2ME中缺乏反射"功能,因此我使用J2ME单元并设置测试装置很麻烦,但是它们的构建方式始终相同,因此模板可以节省大量时间. 我打算在本周试用MoME Unit,只是为了检查其更简单的模型

My experience: I've use J2ME Unit and setting up Test Fixtures is a pain due to the lack of "Reflection" in J2ME, but they are all build always the same way, so a template saves a lot of time. I was planning to try out MoME Unit this week, just to check its simpler model

一些针对J2ME的测试单元框架:

Some Test Unit Frameworks for J2ME:

  • JMUnit
  • MoME Unit
  • J2ME Unit
  • Sony-Ericsson Movil Java Unit

这篇关于您会为J2ME建议哪些单元测试框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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