Author jonash
Recipients jonash
Date 2017-11-18.18:12:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511028760.96.0.213398074469.issue32071@psf.upfronthosting.co.za>
In-reply-to
Content
I'd like to add test selection based on parts of the test class/method name to unittest. Similar to py.test's "-k" option: https://docs.pytest.org/en/latest/example/markers.html#using-k-expr-to-select-tests-based-on-their-name

Here's a proof of concept implementation: https://github.com/jonashaag/cpython/compare/master...unittest-select

Is this something others find useful as well? If so, I'd like to work on getting this into Python stdlib proper. This is my first time contributing to the unittest framework; is the general approach taken in my PoC implementation correct in terms of abstractions? How can I improve the implementation?

Jonas
History
Date User Action Args
2017-11-18 18:12:41jonashsetrecipients: + jonash
2017-11-18 18:12:40jonashsetmessageid: <1511028760.96.0.213398074469.issue32071@psf.upfronthosting.co.za>
2017-11-18 18:12:40jonashlinkissue32071 messages
2017-11-18 18:12:40jonashcreate