java.lang.Object | |
↳ | android.test.suitebuilder.TestSuiteBuilder |
Build suites based on a combination of included packages, excluded packages, and predicates that must be satisfied.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TestSuiteBuilder.FailedToCreateTests | A special TestCase used to indicate a failure during the build()
step. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The given name is automatically prefixed with the package containing the tests to be run.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Exclude tests that fail to satisfy all of the given predicates.
| |||||||||||
Exclude tests that fail to satisfy all of the given predicates.
| |||||||||||
Call this method once you've configured your builder as desired.
| |||||||||||
Exclude all tests in the given packages and all sub-packages, unless otherwise specified.
| |||||||||||
Include all junit tests that satisfy the requirements in the calling class' package and all
sub-packages.
| |||||||||||
Include all tests that satisfy the requirements in the given packages and all sub-packages,
unless otherwise specified.
| |||||||||||
Override the default name for the suite being built.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses use this method to determine the name of the suite.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The given name is automatically prefixed with the package containing the tests to be run. If more than one package is specified, the first is used.
clazz | Use the class from your .apk. Use the class name for the test suite name. Use the class' classloader in order to load classes for testing. This is needed when running in the emulator. |
---|
Exclude tests that fail to satisfy all of the given predicates. If you call this method, you
probably also want to call named(String)
to override the default suite name.
predicates | Predicates to add to the list of requirements. |
---|
Exclude tests that fail to satisfy all of the given predicates.
predicates | Predicates to add to the list of requirements. |
---|
Call this method once you've configured your builder as desired.
Exclude all tests in the given packages and all sub-packages, unless otherwise specified.
packageNames | Names of packages to remove. |
---|
Include all junit tests that satisfy the requirements in the calling class' package and all sub-packages.
Include all tests that satisfy the requirements in the given packages and all sub-packages, unless otherwise specified.
packageNames | Names of packages to add. |
---|
Override the default name for the suite being built. This should generally be called if you
call addRequirements(com.android.internal.util.Predicate[])
to make it clear which
tests will be included. The name you specify is automatically prefixed with the package
containing the tests to be run. If more than one package is specified, the first is used.
newSuiteName | Prefix of name to give the suite being built. |
---|
Subclasses use this method to determine the name of the suite.