This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Arfrever, vstinner
Date 2011-06-01.00:11:39
SpamBayes Score 9.786228e-09
Marked as misclassified No
Message-id <201106010211.25579.victor.stinner@haypocalc.com>
In-reply-to <1306886173.49.0.536773734975.issue12231@psf.upfronthosting.co.za>
Content
> 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.
History
Date User Action Args
2011-06-01 00:11:40vstinnersetrecipients: + vstinner, Arfrever
2011-06-01 00:11:39vstinnerlinkissue12231 messages
2011-06-01 00:11:39vstinnercreate