diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2008-07-13 21:32:22 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2008-07-13 21:32:22 +0200 |
commit | aab929e273a41a188a244b5d2c8b3e53408172ab (patch) | |
tree | bdbb169569082a3290de6dbdaf7ef7d68bc919c1 /testlib.py | |
parent | 47df8cd6dff5c08b32966a7b59b5da75d23123de (diff) | |
download | logilab-common-aab929e273a41a188a244b5d2c8b3e53408172ab.tar.gz |
improve doc for better epydoc generation.
Diffstat (limited to 'testlib.py')
-rw-r--r-- | testlib.py | 32 |
1 files changed, 17 insertions, 15 deletions
@@ -1,29 +1,31 @@ -# modified copy of some functions from test/regrtest.py from PyXml -# disable camel case warning -# pylint: disable-msg=C0103 -"""Copyright (c) 2003-2006 LOGILAB S.A. (Paris, FRANCE). -http://www.logilab.fr/ -- mailto:contact@logilab.fr - -Run tests. +"""Run tests. This will find all modules whose name match a given prefix in the test -directory, and run them. Various command line options provide +directory, and run them. Various command line options provide additional facilities. Command line options: --v: verbose -- run tests in verbose mode with output to stdout --q: quiet -- don't print anything except if a test fails --t: testdir -- directory where the tests will be found --x: exclude -- add a test to exclude --p: profile -- profiled execution --c: capture -- capture standard out/err during tests --d: dbc -- enable design-by-contract + -v: verbose -- run tests in verbose mode with output to stdout + -q: quiet -- don't print anything except if a test fails + -t: testdir -- directory where the tests will be found + -x: exclude -- add a test to exclude + -p: profile -- profiled execution + -c: capture -- capture standard out/err during tests + -d: dbc -- enable design-by-contract If no non-option arguments are present, prefixes used are 'test', 'regrtest', 'smoketest' and 'unittest'. +:copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr +:license: General Public License version 2 - http://www.gnu.org/licenses """ +__docformat__ = "restructuredtext en" +# modified copy of some functions from test/regrtest.py from PyXml +# disable camel case warning +# pylint: disable-msg=C0103 + import sys import os, os.path as osp import re |