[issue32071] Add py.test-like "-k" test selection to unittest
Jonas H.
report at bugs.python.org
Sat Nov 18 13:12:40 EST 2017
New submission from Jonas H. <jonas at lophus.org>:
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
----------
components: Library (Lib)
messages: 306490
nosy: jonash
priority: normal
severity: normal
status: open
title: Add py.test-like "-k" test selection to unittest
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32071>
_______________________________________
More information about the Python-bugs-list
mailing list