Added help text for running single backend tests.

This commit is contained in:
Aakash Tyagi 2016-06-27 14:15:30 -07:00 committed by Tim Abbott
parent e72f41cdec
commit 9154d93669
1 changed files with 7 additions and 1 deletions

View File

@ -26,7 +26,13 @@ if __name__ == "__main__":
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
os.environ['PYTHONUNBUFFERED'] = 'y'
parser = optparse.OptionParser()
usage = """%prog [options]
test-backend # Runs all backend tests
test-backend zerver.tests.test_bugdown # run all tests in a test module
test-backend zerver.tests.test_bugdown.BugdownTest # run all tests in a test class
test-backend zerver.tests.test_bugdown.BugDownTest.test_inline_youtube # run a single test"""
parser = optparse.OptionParser(usage)
parser.add_option('--nonfatal-errors', action="store_false", default=True,
dest="fatal_errors", help="Continue past test failures to run all tests")
parser.add_option('--coverage', dest='coverage',