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