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(Set<String> filters)

Adds the Set of filters of which tests to exclude.

abstract void addAllIncludeFilters(Set<String> filters)

Adds the 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.

Public methods

addAllExcludeFilters

public abstract void addAllExcludeFilters (Set<String> filters)

Adds the Set of filters of which tests to exclude.

Parameters
filters Set

addAllIncludeFilters

public abstract void addAllIncludeFilters (Set<String> filters)

Adds the Set of filters of which tests to include.

Parameters
filters Set

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