Added --quiet, -q, -v and --verbose command-line options to running tests.

This commit is contained in:
Joe Gregorio 2006-10-20 13:58:36 -04:00
parent e1b6a5ee83
commit 5da7e13776

View File

@ -33,5 +33,11 @@ except Exception, exception:
for module in modules: __import__(module)
raise
verbosity = 1
if "-q" in sys.argv or '--quiet' in sys.argv:
verbosity = 0
if "-v" in sys.argv or '--verbose' in sys.argv:
verbosity = 2
# run test suite
unittest.TextTestRunner().run(suite)
unittest.TextTestRunner(verbosity=verbosity).run(suite)