[issue12231] regrtest: add -k and -K options to filter tests by function/file names
STINNER Victor
report at bugs.python.org
Wed Jun 1 02:11:40 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> Attached patch adds -k/--func-regex and -K/--file-regex options to filter
> tests by function/file names.
We need maybe a third option to filter tests by their class name. And we need
also maybe the opposite option: exclude tests matching a regex. Another
proposition: --include and --exclude options using the following format:
<file regex>:<class regex>:<function regex>
Each field is optional, examples:
--include "test_subprocess::leak" ignores test_leak function of
test_subprocess file
--include "codecencoding::" runs the 6 test_codecencoding* files
--include "test_subprocess:^C:" runs only the tests of the io module (not the
_pyio module)
- etc.
Problem: --exclude (-x) option is already used.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12231>
_______________________________________
More information about the Python-bugs-list
mailing list