Open xmo-odoo opened 8 months ago
Oooo, that is a very neat idea. I also usually run my tests in a terminal outside PyCharm, because PyCharm is a monstrous beast capable of many, many wonderful things... but timely display and responsive UI are not among them. This would, indeed, be very handy, and I know I've tried copying nodeids into the search – in fact, I know I've tried so many times that I've burned into habit the translation to TestClass.test_func
.
This should be possible with a SearchEverywhereContributor
I've no idea if it's even possible to hook into search everywhere, but one of my annoyances with pycharm support of pytest is if you run tests from the CLI (because reasons) and a test fails there's no easy way to go from a nodeid (
path/to/file.py::TestClass::test_func
) to its ide location.You can either go to the test failure and get the
path/to/file.py:line
or use search everywhere and look for thetest_func
(hopefully you don't reuse function names in different test modules) or convertedTestClass.test_func
, but you can't just use what pytest literally gives you in the test summary.As far as I can tell, pytest-imp doesn't support it either, but it would be really cool.