TestMappingSuiteRunner
public class TestMappingSuiteRunner
extends BaseTestSuite
java.lang.Object | |||
↳ | com.android.tradefed.testtype.suite.ITestSuite | ||
↳ | com.android.tradefed.testtype.suite.BaseTestSuite | ||
↳ | com.android.tradefed.testtype.suite.TestMappingSuiteRunner |
BaseTestSuite
的实现以运行由选项 include-filter 指定的测试,或来自构建的 TEST_MAPPING 文件,作为一个套件。
概括
公共构造函数 | |
---|---|
TestMappingSuiteRunner () |
公共方法 | |
---|---|
void | clearTestGroup () |
loadTests () 加载将要运行的测试配置。 | |
void | setTestDiscovery (Boolean testDiscovery) 设置测试发现模式标志。 |
公共构造函数
TestMappingSuiteRunner
public TestMappingSuiteRunner ()
公共方法
清除测试组
public void clearTestGroup ()
负载测试
publicloadTests ()
加载将要运行的测试配置。每个测试都由IConfiguration
和报告结果的唯一名称定义。有两种方法可以为TestMappingSuiteRunner
加载测试:
1. --test-mapping-test-group,指定TEST_MAPPING文件中的测试组。运行器将通过构建工件 test_mappings.zip 解析源代码中的所有 TEST_MAPPING 文件,并加载在给定测试组下分组的测试。
2. --include-filter,指定要运行的测试的名称。用例用于预提交检查,以仅运行与要验证的 Cls 相关的测试列表。测试列表是从修改后的源代码中的相关 TEST_MAPPING 文件编译而来的。
退货 | |
---|---|
测试名称到每个测试的IConfiguration 对象的映射。 |
设置测试发现
public void setTestDiscovery (Boolean testDiscovery)
设置测试发现模式标志。
参数 | |
---|---|
testDiscovery | Boolean |