[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/tests/test.py Merged from head:

Jim Fulton jim at zope.com
Fri Jul 9 16:02:29 EDT 2004


Log message for revision 26369:
Merged from head:

  r26362 | jim | 2004-07-09 15:24:42 -0400 (Fri, 09 Jul 2004) | 8 lines

Various:

- Changed the name of the non-functional --method option to --test

  Made it work too, I suspect ;)

- Added documentation for --test and --module



-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/tests/test.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/tests/test.py	2004-07-09 19:57:50 UTC (rev 26368)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/tests/test.py	2004-07-09 20:02:29 UTC (rev 26369)
@@ -127,6 +127,9 @@
     Keep running the selected tests in a loop.  You may experience
     memory leakage.
 
+--module modfilter
+    Provide a module filter (see modfilter below)
+
 -N n
 --repeat n
     Run the selected tests n times.
@@ -153,6 +156,9 @@
     Time the individual tests and print a list of the top 50, sorted from
     longest to shortest.
 
+--test testfilter
+    Provide a test filter (see testfilter below)
+
 --times n
 --times outfile
     With an integer argument, time the tests and print a list of the top <n>
@@ -219,7 +225,7 @@
 
     testfilter is applied to the (method) name of the unittest methods
     contained in the test files whose paths modfilter matched.
-    Additional testfilters can be specified with the --method option;
+    Additional testfilters can be specified with the --test option;
     methods are matched if they match at least one testfilter.
 
 Extreme (yet useful) examples:
@@ -1000,7 +1006,7 @@
                 TIMESFN = v
         elif k in ('-s', '--dir'):
             TEST_DIRS.append(v)
-        elif k == "method":
+        elif k == "--test":
             TEST_FILTERS.append(v)
         elif k == "--module":
             MODULE_FILTERS.append(v)



More information about the Zope3-Checkins mailing list