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)
def addSuccess(self, test): secs = self.toc() sys.stderr.write( "%s %s (%0.3f secs)\n" % (greenStr('[ RUN OK ]'), self.getTestName(test), secs))
def addSuccess(self, test): secs = self.toc() sys.stderr.write("%s %s (%0.3f secs)\n" % (greenStr("[ RUN OK ]"), self.getTestName(test), secs))