Ejemplo n.º 1
0
 def runTests(self):
     """Run tests"""
     # fire plugin hook
     runner = self._makeRunner()
     self.result = runner.run(self.test)
     if self.exit:
         sys.exit(not self.result.wasSuccessful())
Ejemplo n.º 2
0
Archivo: main.py Proyecto: JNRowe/nose2
 def runTests(self):
     """Run tests"""
     # fire plugin hook
     runner = self._makeRunner()
     self.result = runner.run(self.test)
     if self.exit:
         sys.exit(not self.result.wasSuccessful())
Ejemplo n.º 3
0
 def runTests(self):
     """Run tests"""
     # fire plugin hook
     runner = self._makeRunner()
     try:
         self.result = runner.run(self.test)
     except Exception as e:
         log.debug('Internal Error', exc_info=True)
         sys.stderr.write('Internal Error: runTests aborted: %s\n'%(e))
         if self.exit:
             sys.exit(1)
     if self.exit:
         sys.exit(not self.result.wasSuccessful())
Ejemplo n.º 4
0
 def runTests(self):
     """Run tests"""
     # fire plugin hook
     runner = self._makeRunner()
     try:
         self.result = runner.run(self.test)
     except Exception as e:
         log.exception('Internal Error')
         sys.stderr.write('Internal Error: runTests aborted: %s\n' % (e))
         if self.exit:
             #sys.exit(1)
             #avoid exit to repeat running test case
             print("sys.exit(1)")
     if self.exit:
         #sys.exit(not self.result.wasSuccessful())
         # avoid exit to repeat running test case
         print(not self.result.wasSuccessful())