Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::cmd::runner::TestSuiteRunner::run (   self,
  loggerclass = None,
  setup_once = True 
)

Run the test suite and return xml report

Definition at line 87 of file runner.py.

00087                                                     :
        """
        Run the test suite and return xml report
        """
        logging.info("Running test suite '%s' (%s)"
                     % (self.suite_data.name,
                        self.suite_data.fullname))
        try:
            self._run(loggerclass, setup_once)
        except Exception, e:
            logging.warning(traceback.format_exc())
            # There was an unrelated error.
            self.results.append('message', str(e))
            self.results.append('stacktrace', traceback.format_exc())
            self.results['error'] = 1
            try:
                self.suite.teardown()
            except:
                pass

        self.suite_data.add_results(self.results)
        return etree.tostring(self.suite_data.root, "utf-8")
 
           
    def _run(self, loggerclass, setup_once):


Generated by  Doxygen 1.6.0   Back to index