ITestFileFilterReceiver

public interface ITestFileFilterReceiver

com.android.tradefed.testtype.ITestFileFilterReceiver


A runner that can receive a file specifying which tests to run and/or not to run.

A test will be run if it is included in the testFile provided, and not excluded by the notTestFile or by an exclude filter provided to the test runner. Either file should contain a line separated list of test names, formatted as filters.

The format of the filters is defined by the runner, and could be structured as <package>, <package>.<class>, <package>.<class>#<method> or <native_name>. They can even be regexes.

Summary

Public methods

default File getExcludeTestFile()

Returns the file containing the excluded tests.

default File getIncludeTestFile()

Returns the file containing the included tests.

abstract void setExcludeTestFile(File testFile)

Sets the test file of excludes.

abstract void setIncludeTestFile(File testFile)

Sets the test file of includes.

Public methods

getExcludeTestFile

public File getExcludeTestFile ()

Returns the file containing the excluded tests.

Returns
File

getIncludeTestFile

public File getIncludeTestFile ()

Returns the file containing the included tests.

Returns
File

setExcludeTestFile

public abstract void setExcludeTestFile (File testFile)

Sets the test file of excludes. Does not ensure that testFile exists or is a file.

Parameters
testFile File

setIncludeTestFile

public abstract void setIncludeTestFile (File testFile)

Sets the test file of includes. Does not ensure that testFile exists or is a file.

Parameters
testFile File