[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/test.py
Various:
Jim Fulton
jim at zope.com
Fri Jul 9 15:24:42 EDT 2004
Log message for revision 26362:
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/trunk/src/zope/app/tests/test.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test.py 2004-07-09 19:03:38 UTC (rev 26361)
+++ Zope3/trunk/src/zope/app/tests/test.py 2004-07-09 19:24:42 UTC (rev 26362)
@@ -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:
@@ -1004,7 +1010,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