Пример #1
0
 def doReport(self):
     secs = time.time() - self.startTimeAll
     sys.stderr.write("\n%s run %d tests (%0.3f secs)\n" %
                      (greenStr("[==========]"), self.numberTests, secs))
     if self.testFailed:
         print >> sys.stderr, redStr("[  FAILED  ]") + " %d tests" % self.testFailed
     print >> sys.stdout, greenStr("[  PASSED  ]") + " %d tests" % (self.numberTests - self.testFailed)
Пример #2
0
 def doReport(self):
     secs = time.time() - self.startTimeAll
     sys.stderr.write("\n%s run %d tests (%0.3f secs)\n" %
                      (greenStr("[==========]"), self.numberTests, secs))
     if self.testFailed:
         print >> sys.stderr, redStr("[  FAILED  ]") + " %d tests" % self.testFailed
     print >> sys.stdout, greenStr("[  PASSED  ]") + " %d tests" % (self.numberTests - self.testFailed)
Пример #3
0
 def addSuccess(self, test):
     secs = self.toc()
     sys.stderr.write(
         "%s %s (%0.3f secs)\n" %
         (greenStr('[ RUN   OK ]'), self.getTestName(test), secs))
Пример #4
0
 def addSuccess(self, test):
     secs = self.toc()
     sys.stderr.write("%s %s (%0.3f secs)\n" % (greenStr("[ RUN   OK ]"), self.getTestName(test), secs))