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 () |
loadTestInfos () | |
loadTests () 加載將要運行的測試配置。 |
公共構造函數
TestMappingSuiteRunner
public TestMappingSuiteRunner ()
公共方法
清除測試組
public void clearTestGroup ()
加載測試信息
publicloadTestInfos ()
退貨 | |
---|---|
負載測試
publicloadTests ()
加載將要運行的測試配置。每個測試都由IConfiguration
和報告結果的唯一名稱定義。有兩種方法可以為TestMappingSuiteRunner
加載測試:
1. --test-mapping-test-group,指定TEST_MAPPING文件中的測試組。運行器將通過構建工件 test_mappings.zip 解析源代碼中的所有 TEST_MAPPING 文件,並加載在給定測試組下分組的測試。
2. --include-filter,指定要運行的測試的名稱。用例用於預提交檢查,以僅運行與要驗證的 Cls 相關的測試列表。測試列表是從修改後的源代碼中的相關 TEST_MAPPING 文件編譯而來的。
退貨 | |
---|---|
測試名稱到每個測試的IConfiguration 對象的映射。 |