使用junit类别的CTS执行

问题描述 投票:0回答:1

CTS执行:

我们如何通过命令行使用注释和类别来触发Junit测试套件?

android junit4 cts
1个回答
0
投票

您可以使用android instrumentation命令运行CTS单个测试方法或整个类。

例如:在此示例中,提到的CTS测试类具有特定的方法可以运行,您可以从以下命令中删除测试方法,以运行该类中的所有测试方法。亚行工具外壳-w -e类android.animation.AnimatorSetEventsTest#testCancel\ com.android.frameworks.coretests android.support.test.runner.AndroidJUnitRunner

有关通过工具运行测试的更多详细信息,请点击此链接-https://source.android.com/compatibility/tests/development/instrumentation

© www.soinside.com 2019 - 2024. All rights reserved.