document test runner options
authorStefan Behnel <scoder@users.berlios.de>
Mon, 26 May 2008 15:36:15 +0000 (17:36 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 26 May 2008 15:36:15 +0000 (17:36 +0200)
runtests.py

index 500ab9b7b1d56404b00e4bad58468ce60e96e971..d66808d1c535b96bdfdec20ff476b0012f18adb6 100644 (file)
@@ -229,16 +229,21 @@ class CythonRunTestCase(CythonCompileTestCase):
 if __name__ == '__main__':
     from optparse import OptionParser
     parser = OptionParser()
-    parser.add_option("--no-cython", dest="with_cython",
-                      action="store_false", default=True)
     parser.add_option("--no-cleanup", dest="cleanup_workdir",
-                      action="store_false", default=True)
+                      action="store_false", default=True,
+                      help="do not delete the generated C files (allows passing --no-cython on next run)")
+    parser.add_option("--no-cython", dest="with_cython",
+                      action="store_false", default=True,
+                      help="do not run the Cython compiler, only the C compiler")
     parser.add_option("-C", "--coverage", dest="coverage",
-                      action="store_true", default=False)
-    parser.add_option("-A", "--annotate-source", dest="annotate_source",
-                      action="store_true", default=False)
+                      action="store_true", default=False,
+                      help="collect source coverage data for the Compiler")
+    parser.add_option("-A", "--annotate", dest="annotate_source",
+                      action="store_true", default=False,
+                      help="generate annotated HTML versions of the test source files")
     parser.add_option("-v", "--verbose", dest="verbosity",
-                      action="count", default=0)
+                      action="count", default=0,
+                      help="display test progress, pass twice to print test names")
 
     options, cmd_args = parser.parse_args()