Lines Matching full:tests
33 """Finds instrumentation tests from filesystem."""
36 """Gets list of Android instrumentation tests found at given path.
38 Tests are created from the <instrumentation> tags found in
41 FindTests will first scan sub-folders of path for tests. If none are found,
46 - a parent directory containing many tests:
47 ie development/samples will return tests for instrumentation's in ApiDemos,
48 ApiDemos/tests, Notepad/tests etc
50 ie ApiDemos/tests/src/../ApiDemosTest.java will return a test for
51 the instrumentation in ApiDemos/tests, with the class name filter set to
54 ie ApiDemos/tests/src/com/example/android/apis will return a test for
55 the instrumentation in ApiDemos/tests, with the java package filter set
77 # tests within this directory
78 tests = self._FindSubTests(abspath, [])
79 if not tests:
80 logger.SilentLog('No tests found within %s, searching upwards' % path)
81 tests = self._FindUpstreamTests(abspath)
82 return tests
113 def _FindSubTests(self, path, tests, build_path=None):
114 """Recursively finds all tests within given path.
118 tests: current list of found tests
122 updated list of tests
125 return tests
129 # this is also necessary in case of overlapping tests
137 tests.extend(self._CreateSuitesFromManifest(manifest, build_path))
139 self._FindSubTests(os.path.join(path, filename), tests, build_path)
140 return tests
143 """Find tests defined upward from given path.
276 the list of tests created
278 tests = []
293 # this logic can be removed altogether when cts tests no longer require
297 tests.append(suite)
298 return tests