ITestFilterReceiver

public interface ITestFilterReceiver

com.android.tradefed.testtype.ITestFilterReceiver


A runner that can filter which tests to run.

A test will be run IFF it matches one or more of the include filters AND does not match any of the exclude filters. If no include filters are given all tests should be run as long as they do not match any of the exclude 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

abstract void addAllExcludeFilters( filters)

Adds the ERROR(/Set) of filters of which tests to exclude.

abstract void addAllIncludeFilters( filters)

Adds the ERROR(/Set) of filters of which tests to include.

abstract void addExcludeFilter(String filter)

Adds a filter of which tests to exclude.

abstract void addIncludeFilter(String filter)

Adds a filter of which tests to include.

abstract void clearExcludeFilters()

Delete all the exclude filters currently tracked.

abstract void clearIncludeFilters()

Delete all the include filters currently tracked.

abstract getExcludeFilters()

Returns the current ERROR(/Set) of exclude filters.

abstract getIncludeFilters()

Returns the current ERROR(/Set) of include filters.

Public methods

addAllExcludeFilters

public abstract void addAllExcludeFilters ( filters)

Adds the ERROR(/Set) of filters of which tests to exclude.

Parameters
filters

addAllIncludeFilters

public abstract void addAllIncludeFilters ( filters)

Adds the ERROR(/Set) of filters of which tests to include.

Parameters
filters

addExcludeFilter

public abstract void addExcludeFilter (String filter)

Adds a filter of which tests to exclude.

Parameters
filter String

addIncludeFilter

public abstract void addIncludeFilter (String filter)

Adds a filter of which tests to include.

Parameters
filter String

clearExcludeFilters

public abstract void clearExcludeFilters ()

Delete all the exclude filters currently tracked.

clearIncludeFilters

public abstract void clearIncludeFilters ()

Delete all the include filters currently tracked.

getExcludeFilters

public abstract  getExcludeFilters ()

Returns the current ERROR(/Set) of exclude filters.

Returns

getIncludeFilters

public abstract  getIncludeFilters ()

Returns the current ERROR(/Set) of include filters.

Returns