如何在Eclipse的多个项目运行Android JUnit测试? [英] How to run Android JUnit tests from multiple projects in eclipse?

查看:142
本文介绍了如何在Eclipse的多个项目运行Android JUnit测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何运行包含在Eclipse的Andr​​oid的JUnit测试R​​obotium一次多个项目...
我希望有人能够帮助。

I'm wondering how to run multiple projects containing Android JUnit Robotium test from eclipse at once... I hope someone could help.

非常感谢!

推荐答案

您可以运行使用开放源代码的类路径套件在多个项目JUnit测试。

You can run JUnit tests across multiple projects using the open source Classpath Suite.

创建一个包含所有你要测试的项目依赖的Eclipse项目。
写套件:

Create an Eclipse project which contains a dependency on all the projects you want to test. Write a suite:

@RunWith(ClasspathSuite.class)
public class MySuite

就拿这篇文章一看:的兔子罗杰 - JUnit测试亚军在多个项目的,它包括了一步例如步骤和code样品

Take a look on this article: Roger Rabbit - JUnit Tests Runner Across Multiple Projects, it includes a step by step example and a code sample.

这篇关于如何在Eclipse的多个项目运行Android JUnit测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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