def main(): parseSuiteTestOptions() suite = allSuites() runner = unittest.TextTestRunner() i = runner.run(suite) return len(i.failures) + len(i.errors)
def parseTestOptions(): parser = getBasicOptionParser('usage: %prog [options]', '%prog 0.1') parser.add_option('-v', '--verbose', dest = 'verbose', default = False, action = 'store_true', help = 'perserve the default verbose behavior for unittest.') options, args = parseSuiteTestOptions(parser) return options, args
def main(): parser = getBasicOptionParser() initializeOptions(parser) options, args = parseSuiteTestOptions(parser) checkOptions(options, parser) suite = allSuites(options) runner = unittest.TextTestRunner() i = runner.run(suite) return len(i.failures) + len(i.errors)
def main(): parser = getBasicOptionParser() parser.add_option("--longTests", dest="longTests", action="store_true", help="Run longer, more complete tests (with more reads)", default=False) options, args = parseSuiteTestOptions(parser) global longTests longTests = options.longTests sys.argv = sys.argv[:1] unittest.main()
def main(): parseSuiteTestOptions() sys.argv = sys.argv[:1] unittest.main()
def main(): parseSuiteTestOptions() unittest.main()