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 techtonik
Recipients sandro.tosi, techtonik
Date 2010-11-12.17:25:32
SpamBayes Score 4.0065173e-10
Marked as misclassified No
Message-id <1289582742.17.0.978804521808.issue8332@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-12 17:25:42techtoniksetrecipients: + techtonik, sandro.tosi
2010-11-12 17:25:42techtoniksetmessageid: <1289582742.17.0.978804521808.issue8332@psf.upfronthosting.co.za>
2010-11-12 17:25:32techtoniklinkissue8332 messages
2010-11-12 17:25:32techtonikcreate