是否有可能混合JUnit3和JUnit4? [英] Is it possible to mix JUnit3 and JUnit4?

查看:169
本文介绍了是否有可能混合JUnit3和JUnit4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信你可以帮我解决compabitility的JUnit库连接的问题。

I believe that you can help me solve problem connected with compabitility JUnit libraries.

问题是,我们开发移动应用(Android)和我们正在使用一种名为SpiraTest测试同治工具。我们希望该单元测试结果将出口到SpiraTest自动所以想使用Spiratest JUnit扩展(通过斯培拉队制造)。问题是,它需要JUnit4集成,什么Android不支持。

The problem is that we develop mobile apps (android) and we're using test managment tool called SpiraTest. We want that unit test results will be exported to SpiraTest automatically so want use junit extension for Spiratest (made by Spira team). Problem is that it requires JUnit4 to integrate, what Android doesn't support.

你会怎样建议呢?

推荐答案

我会说,如果你打算做单元测试你自己的功能也不会真正关注的是,Android支持与否,你只要运行单元测试,无论Android SDK的。然而,如果你有意使用JUnit的Andr​​oid一起工作,也没办法在目前这样做,我是知道的。

I would say that if you are going to do unit testing of you own functionality it won't really matter if Android supports it or not, you just run the unit tests regardless of the Android SDK. However if you intent to use jUnit to work alongside Android, there is no way at the moment to do it that I'm aware of.

这篇关于是否有可能混合JUnit3和JUnit4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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