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)
設定包含的測試檔案。 |
公用方法
getExcludeTestFile
public File getExcludeTestFile ()
傳回包含排除測試的檔案。
| 傳回 | |
|---|---|
File |
|
getIncludeTestFile
public File getIncludeTestFile ()
傳回包含測試的檔案。
| 傳回 | |
|---|---|
File |
|
setExcludeTestFile
public abstract void setExcludeTestFile (File testFile)
設定排除的測試檔案。無法確保 testFile 存在或為檔案。
| 參數 | |
|---|---|
testFile |
File |
setIncludeTestFile
public abstract void setIncludeTestFile (File testFile)
設定包含的測試檔案。無法確保 testFile 存在或為檔案。
| 參數 | |
|---|---|
testFile |
File |