pytest-testmon icon indicating copy to clipboard operation
pytest-testmon copied to clipboard

Print paths to tests that should be rerun

Open henningphan opened this issue 6 years ago • 7 comments

Enhancement,

In my personal setup, I have a different system that runs the tests.

It would be great if testmon had the option to print the fullpath of the affected tests.

henningphan avatar Mar 23 '18 15:03 henningphan

related to #62

tarpas avatar Mar 30 '18 23:03 tarpas

I found out that in my particular scenario, you could just print all selected items in def pytest_modify..(). and then move all selected items to deselected. Tell me if my solution is of interest.

I find your #62 to be more ambitious than my needs

henningphan avatar Mar 31 '18 16:03 henningphan

unfortunatelly I plan difficult refactoring of pytest_testmon.py, so I'm not very keen to add functionality there before. Wouldnt a better UI be separate command which prints just the test names, so that it could be used as input to other commands directly? (without parsing out pytest headers)?

tarpas avatar Mar 31 '18 18:03 tarpas

I agree a separate command which just print the test names is a more optimal solution. Could you point out how one could accomplish that?

henningphan avatar Mar 31 '18 20:03 henningphan

Not easily, sorry. Your strategy of printing from pytest_modify_collection is the right one. I will just not be able to merge it. After refactor it should be very easy to create a separate plugin class which does only what you request.

tarpas avatar Apr 01 '18 04:04 tarpas

@henningphan do you still need this functionality? I can start working on it if still needed.

tarpas avatar Dec 05 '19 16:12 tarpas

Hello, Im not longer on the project and therefore dont need this feature.

henningphan avatar Dec 05 '19 21:12 henningphan