mirror of https://github.com/zulip/zulip.git
Added help text for running single backend tests.
This commit is contained in:
parent
e72f41cdec
commit
9154d93669
|
@ -26,7 +26,13 @@ if __name__ == "__main__":
|
||||||
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
||||||
os.environ['PYTHONUNBUFFERED'] = 'y'
|
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,
|
parser.add_option('--nonfatal-errors', action="store_false", default=True,
|
||||||
dest="fatal_errors", help="Continue past test failures to run all tests")
|
dest="fatal_errors", help="Continue past test failures to run all tests")
|
||||||
parser.add_option('--coverage', dest='coverage',
|
parser.add_option('--coverage', dest='coverage',
|
||||||
|
|
Loading…
Reference in New Issue