ITestFilterReceiver

public interface ITestFilterReceiver

com.android.tradefed.testtype.ITestFilterReceiver
Known Indirect Subclasses
AndroidJUnitTest A Test that runs an instrumentation test package on given device using the android.support.test.runner.AndroidJUnitRunner. 
DeviceTestCase Helper JUnit test case that provides the IRemoteTest and IDeviceTest services. 
GTest A Test that runs a native test package on given device. 
HostTest A test runner for JUnit host based tests. 


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

void addAllExcludeFilters (Set<String> filters)

Adds the Set of filters of which tests to exclude.

Parameters
filters Set

addAllIncludeFilters

void addAllIncludeFilters (Set<String> filters)

Adds the Set of filters of which tests to include.

Parameters
filters Set

addExcludeFilter

void addExcludeFilter (String filter)

Adds a filter of which tests to exclude.

Parameters
filter String

addIncludeFilter

void addIncludeFilter (String filter)

Adds a filter of which tests to include.

Parameters
filter String