diff options
author | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-08-26 14:34:42 +0200 |
---|---|---|
committer | Pierre-Yves David <pierre-yves.david@logilab.fr> | 2008-08-26 14:34:42 +0200 |
commit | d4135a39a672ef17fbf5dc9c9b6eab99e492e26a (patch) | |
tree | 73c86920aab78608ea94cc05744e88f64d2f6a7f /pytest.py | |
parent | d861299087e1ec9d9d6fd3ea254b3d549d6454e4 (diff) | |
download | logilab-common-d4135a39a672ef17fbf5dc9c9b6eab99e492e26a.tar.gz |
allow by tag filtering
Diffstat (limited to 'pytest.py')
-rw-r--r-- | pytest.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -549,6 +549,8 @@ def make_parser(): action="callback", help="Minimal output") parser.add_option('-P', '--profile', default=None, dest='profile', help="Profile execution and store data in the given file") + parser.add_option('-m', '--match', default=None, dest='tags_pattern', + help="only execute test whose tag macht the current pattern") try: from logilab.devtools.lib.coverage import Coverage @@ -591,7 +593,7 @@ def parseargs(parser): # append additional args to the new sys.argv and let unittest_main # do the rest newargs += args - return options, explicitfile + return options, explicitfile |