Пример #1
0
    def run(self, test, progress_reporters, repeat_count, args):
        util.AddDirToPythonPath(util.GetUnittestDataDir())
        result = TestResult(progress_reporters)
        result.startTestRun()
        try:
            options_for_unittests.Push(args)
            for _ in xrange(repeat_count):
                test(result)
        finally:
            options_for_unittests.Pop()
            result.stopTestRun()

        return result
Пример #2
0
    def run(self, test, progress_reporters, repeat_count, args):
        sys.path.append(path.GetUnittestDataDir())
        result = TestResult(progress_reporters)
        result.startTestRun()
        try:
            options_for_unittests.Push(args)
            for _ in xrange(repeat_count):
                test(result)
        finally:
            options_for_unittests.Pop()
            result.stopTestRun()

        return result
Пример #3
0
def _TearDownProcess(child, context):  # pylint: disable=unused-argument
    options_for_unittests.Pop()
Пример #4
0
def _TearDownProcess(child, context): # pylint: disable=unused-argument
  # It's safe to call teardown_browser even if we did not start any browser
  # in any of the tests.
  browser_test_case.teardown_browser()
  options_for_unittests.Pop()
Пример #5
0
def _TearDownProcess(child, context):  # pylint: disable=W0613
    browser_test_case.teardown_browser()
    options_for_unittests.Pop()