1.Suppress
Use this annotation on test classes or test methods that should not be included in a test
suite. If the annotation appears on the class then no tests in that class will be included. If
the annotation appears only on a test method then only that method will be excluded.
2.LargeTest
Marks a test that should run as part of the large tests.
3.MediumTest
Marks a test that should run as part of the medium tests.
4.SmallTest
Marks a test that should run as part of the small tests.
5.Smoke
Marks a test that should run as part of the smoke tests.
The android.test.suitebuilder.SmokeTestSuiteBuilder
will run all tests with this annotation.
*/
public final TestSuite build() {
rootSuite = new TestSuite(getSuiteName());
// Keep track of current class so we know when to create a new sub-suite.
currentClassname = null;
try {
for (TestMethod test : testGrouping.getTests()) {
if (satisfiesAllPredicates(test)) {
addTest(test);
}
}
if (testCases.size() > 0) {
for (TestCase testCase : testCases) {
if (satisfiesAllPredicates(new TestMethod(testCase))) {
addTest(testCase);
}
}
}
} catch (Exception exception) {
Log.i("TestSuiteBuilder", "Failed to create test.", exception);
TestSuite suite = new TestSuite(getSuiteName());
suite.addTest(new FailedToCreateTests(exception));
return suite;
}
return rootSuite;
}o AndroidManifest.xml