STINNER Victor <victor.stin...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue12231> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com