From 9154d93669ac0b024b9e69c4767c81faab441408 Mon Sep 17 00:00:00 2001 From: Aakash Tyagi Date: Mon, 27 Jun 2016 14:15:30 -0700 Subject: [PATCH] Added help text for running single backend tests. --- tools/test-backend | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/test-backend b/tools/test-backend index 74961ef9b8..58b9bc16dc 100755 --- a/tools/test-backend +++ b/tools/test-backend @@ -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',