[Zodb-checkins] CVS: ZEO - test.py:1.1.2.2
Jeremy Hylton
jeremy@zope.com
Tue, 21 May 2002 01:41:59 -0400
Update of /cvs-repository/ZEO
In directory cvs.zope.org:/tmp/cvs-serv26411
Modified Files:
Tag: ZEO2-branch
test.py
Log Message:
Add a bit of usage / doc string
=== ZEO/test.py 1.1.2.1 => 1.1.2.2 ===
+"""Test harness for ZEO
+
+usage: python test.py [options] [modulepath] [testcase]
+
+options:
+ -v -- verbose (can be repeated to increase verbosity)
+ -b -- run "setup.py -q build" before running the tests
+ -d -- run tests in debug mode
+ -L -- run tests in an infinite loop
+ -h -- print this message
+
+The optional modulepath and testcase arguments are regular expressions
+that can be used to limit the number of tests that are run. The
+modulepath regex must be found in the path of the module that contains
+the tests. The testcase regex must be found in the name of the test case.
+
+When it finishes, the test harness prints a report of the tests run
+and how long it took. If errors or failures occured, they will be
+reported along with a traceback. If one -v is specified, a dot will
+be printed as each test is run. If two -v's are specified, the name
+of each test will be printed as it runs.
+"""
import os
import re