Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print paths to tests that should be rerun #93

Open
henningphan opened this issue Mar 23, 2018 · 7 comments
Open

Print paths to tests that should be rerun #93

henningphan opened this issue Mar 23, 2018 · 7 comments

Comments

@henningphan
Copy link

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.

@tarpas
Copy link
Owner

tarpas commented Mar 30, 2018

related to #62

@henningphan
Copy link
Author

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

@tarpas
Copy link
Owner

tarpas commented Mar 31, 2018

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)?

@henningphan
Copy link
Author

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?

@tarpas
Copy link
Owner

tarpas commented Apr 1, 2018

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
Copy link
Owner

tarpas commented Dec 5, 2019

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

@henningphan
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants