Example #1
0
 def _RunTests(mock_runner, tests):
   results = []
   tests = test_dispatcher._TestCollection(
       [test_dispatcher._Test(t) for t in tests])
   test_dispatcher._RunTestsFromQueue(mock_runner, tests, results,
                                      watchdog_timer.WatchdogTimer(None), 2)
   run_results = base_test_result.TestRunResults()
   for r in results:
     run_results.AddTestRunResults(r)
   return run_results
 def setUp(self):
     self.tests = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
     shared_test_collection = test_dispatcher._TestCollection(
         [test_dispatcher._Test(t) for t in self.tests])
     self.test_collection_factory = lambda: shared_test_collection
 def setUp(self):
   self.tests = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
   shared_test_collection = test_dispatcher._TestCollection(
       [test_dispatcher._Test(t) for t in self.tests])
   self.test_collection_factory = lambda: shared_test_collection