CTS执行:
我们如何通过命令行使用注释和类别来触发Junit测试套件?
您可以使用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