[issue8332] regrtest single TestClass/test_method
anatoly techtonik
report at bugs.python.org
Fri Nov 12 18:25:42 CET 2010
anatoly techtonik <techtonik at gmail.com> added the comment:
Yes. You're missing the second case. In:
> regrtest [options] test_file.test_method
You don't specify class name. This saves some time you need to navigate and copy/paste name of container class. It will save more time if masks are used by default. To illustrate this let's introduce '-l' key that lists all found tests to test test discovery (no errors in this sentence).
> regrtest -l *des*
test_file.FancyRenameTests.test_no_*des*t_exists
test_file.FancyRenameTests.test_*des*t_exists
test_file.FancyRenameTests.test_*des*t_opened
test_file.GitFile*des*tTests.test_invalid
test_file.GitFile*des*tTests.test_readonly
test_*des*t.SomeClass.some_test
....
*stars* in results highlight matched substring.
Rationale: The most common operation when looking for tests to run is grep. You don't need to remember option name to specify mask - just use mask - it will run discovery and execute only tests found. '-l' key in test runner can be used to quickly grep available tests to find the exact name and run only it.
----------
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8332>
_______________________________________
More information about the Python-bugs-list
mailing list