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 |