測試映射套件運行器
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 () 載入將運行的測試配置。 |
公共構造函數
測試映射套件運行器
public TestMappingSuiteRunner ()
公共方法
清除測試組
public void clearTestGroup ()
載入測試訊息
publicloadTestInfos ()
退貨 | |
---|---|
負載測試
publicloadTests ()
載入將運行的測試配置。每個測試均由IConfiguration
和報告結果的唯一名稱定義。有兩種方法可以載入TestMappingSuiteRunner
的測試:
1. --test-mapping-test-group,指定TEST_MAPPING檔案中的測試群組。運行程式將透過建置工件 test_mappings.zip 解析原始程式碼中的所有 TEST_MAPPING 文件,並載入分組在給定測試組下的測試。
2. --include-filter,指定要執行的測試的名稱。用例是預先提交檢查僅運行與要驗證的 Cl 相關的測試清單。測試清單是根據修改後的原始程式碼中的相關 TEST_MAPPING 檔案編譯的。
退貨 | |
---|---|
測試名稱到每個測試的IConfiguration 物件的對應。 |