Beispiel #1
0
def main():
    parseSuiteTestOptions()
    
    suite = allSuites()
    runner = unittest.TextTestRunner()
    i = runner.run(suite)
    return len(i.failures) + len(i.errors)
def main():
    parseSuiteTestOptions()
    
    suite = allSuites()
    runner = unittest.TextTestRunner()
    i = runner.run(suite)
    return len(i.failures) + len(i.errors)
Beispiel #3
0
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
Beispiel #4
0
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)
Beispiel #5
0
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)
Beispiel #6
0
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()
Beispiel #7
0
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()
Beispiel #8
0
def main():
    parseSuiteTestOptions()
    sys.argv = sys.argv[:1]
    unittest.main()
Beispiel #9
0
def main():
    parseSuiteTestOptions()
    sys.argv = sys.argv[:1]
    unittest.main()
Beispiel #10
0
def main():
    parseSuiteTestOptions()
    unittest.main()