Esempio n. 1
0
 def _create_progress_indicators(self, options):
   procs = [PROGRESS_INDICATORS[options.progress]()]
   if options.junitout:
     procs.append(progress.JUnitTestProgressIndicator(options.junitout,
                                                      options.junittestsuite))
   if options.json_test_results:
     procs.append(progress.JsonTestProgressIndicator(
       options.json_test_results,
       self.build_config.arch,
       self.mode_options.execution_mode))
   return procs
Esempio n. 2
0
  def _create_progress_indicators(self, test_count, options):
    procs = [PROGRESS_INDICATORS[options.progress]()]
    if options.junitout:
      procs.append(progress.JUnitTestProgressIndicator(options.junitout,
                                                       options.junittestsuite))
    if options.json_test_results:
      procs.append(progress.JsonTestProgressIndicator(self.framework_name))

    for proc in procs:
      proc.configure(options)

    for proc in procs:
      try:
        proc.set_test_count(test_count)
      except AttributeError:
        pass

    return procs
    def _create_progress_indicators(self, test_count, options):
        procs = [PROGRESS_INDICATORS[options.progress]()]
        if options.junitout:
            procs.append(
                progress.JUnitTestProgressIndicator(options.junitout,
                                                    options.junittestsuite))
        if options.json_test_results:
            procs.append(
                progress.JsonTestProgressIndicator(
                    options.json_test_results, self.build_config.arch,
                    self.mode_options.execution_mode))

        for proc in procs:
            try:
                proc.set_test_count(test_count)
            except AttributeError:
                pass

        return procs