【问题标题】:Android: test suiteAndroid:测试套件
【发布时间】:2010-06-25 09:25:54
【问题描述】:

我已经实现了扩展“ActivityInstrumentationTestCase2”的不同测试。
现在,我想构建我的测试:将它们分组并能够运行一个子集。

如何做到这一点?
我可以使用 TestSuite 类吗?

有什么想法吗?

问候,
奥尔本。

【问题讨论】:

  • 您的问题找到解决方案了吗?

标签: android unit-testing


【解决方案1】:

您可以将 android.test.suitebuilder 类集与 Smoke、SmallTest、MediumTest、LargeTest 和 Suppress 注释结合使用。这些注释将允许您制作测试子集。

【讨论】:

    【解决方案2】:

    我用过ActivityInstrumentationTestCase2,但我建议你试试:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多