ITestFileFilterReceiver
public interface ITestFileFilterReceiver
com.android.tradefed.testtype.ITestFileFilterReceiver |
可以接收指定要執行和/或不執行哪些測試的檔案的執行程序。
如果測試包含在提供的 testFile 中,且未被 notTestFile 或提供給測試運行器的排除過濾器排除,則測試將執行。每個文件都應包含行分隔的測試名稱列表,格式為過濾器。
過濾器的格式由執行器定義,可以建構為 <package>、<package>.<class>、<package>.<class>#<method> 或 <native_name>。它們甚至可以是正規表示式。
概括
公共方法 | |
---|---|
default File | getExcludeTestFile () 傳回包含排除的測試的檔案。 |
default File | getIncludeTestFile () 傳回包含所包含測試的檔案。 |
abstract void | setExcludeTestFile (File testFile) 設定排除的測試檔案。 |
abstract void | setIncludeTestFile (File testFile) 設定包含的測試檔案。 |
公共方法
取得排除測試文件
public File getExcludeTestFile ()
傳回包含排除的測試的檔案。
退貨 | |
---|---|
File |
取得包含測試文件
public File getIncludeTestFile ()
傳回包含所包含測試的檔案。
退貨 | |
---|---|
File |
設定排除測試文件
public abstract void setExcludeTestFile (File testFile)
設定排除的測試檔案。不確保 testFile 存在或是一個檔案。
參數 | |
---|---|
testFile | File |
設定包含測試文件
public abstract void setIncludeTestFile (File testFile)
設定包含的測試檔案。不確保 testFile 存在或是一個檔案。
參數 | |
---|---|
testFile | File |