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 |
abstract
void
|
addAllIncludeFilters(Set<String> filters)
Adds the |
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
Set<String>
|
getExcludeFilters()
Returns the current |
abstract
Set<String>
|
getIncludeFilters()
Returns the current |
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 |
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 Set<String> getExcludeFilters ()
Returns the current Set of exclude filters.
| Returns | |
|---|---|
Set<String> |
|
getIncludeFilters
public abstract Set<String> getIncludeFilters ()
Returns the current Set of include filters.
| Returns | |
|---|---|
Set<String> |
|