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