Hi all!
I've been annoyed a couple of times by the fact that pytest doesn't count the number of selected tests for me. I'm sorry, I can't do math without a calculator.
I've written a fix for this, but I'm not going to fix the tests, if there's no interest in merging this. https://github.com/kown7/pytest/tree/count-tests
Thank you for your feedback.
Hi @kown7,
I've tried your PR and I think it looks nice:
位 pytest test_foo.py -k _a
============================= test session starts =============================
platform win32 -- Python 2.7.15, pytest-4.1.2.dev15+g9f86e834, py-1.7.0, pluggy-0.8.1
rootdir: C:\Users\bruno\tmp, inifile:
collected 30 items / 20 deselected / 10 selected
test_foo.py .......... [100%]
================== 10 passed, 20 deselected in 0.05 seconds ===================
Compared with the latest version:
位 pytest test_foo.py -k _a
============================= test session starts =============================
platform win32 -- Python 2.7.15, pytest-4.1.1, py-1.7.0, pluggy-0.8.1
rootdir: C:\Users\bruno\tmp, inifile:
collected 30 items / 20 deselected
test_foo.py .......... [100%]
================== 10 passed, 20 deselected in 0.05 seconds ===================
IMO this is a nice enhancement! 馃憤
@RonnyPfannschmidt @asottile @blueyed, any objections?
Lg2m, let's throw it into features!
Looks good to me
Your abbrevitations, it feels like my first day on IRC.
Should we change all the documentation as well, e.g., doc/en/example/markers.rst ?
@kown7
I think this gets generated automatically (regendoc).
@blueyed is right. Good thing you asked first and didn't waste time updating the docs manually. 馃憤
Travis is happy! 馃槑
PR or merge-squash?
make a PR please <3
Hmm, to master or features?
even though it's tiny I think it technically should go to features
Most helpful comment
@kown7
I think this gets generated automatically (regendoc).