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