-
Notifications
You must be signed in to change notification settings - Fork 7
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
Make pytest-incremental assume a full run has already been executed #4
Comments
@nicoddemus |
i think this idea is integratable with CI artifacts |
I didn't, I will try it some other time, thanks for the tip.
Certainly that would be the next step. But just to be clear, I'm asking first for a simpler solution if possible. Creating an entire mechanism of fetching and reusing CI artifacts would be a much bigger undertaking. I was thinking of something along the lines of a |
@nicoddemus So I guess it should not be that hard to implement this. Just need to do an extra call to |
@RonnyPfannschmidt I changed the title back to original because what you are asking is bit different... |
I know you are trying to help but you are not welcome to come to this bug tracker just to suggest using testmon... testmon doesnt even support that and you didnt really add anything to the conversation. Also, although this project is older than testmon, it does mention it on its FAQ while testmon makes no reference to this project. |
Sure, thanks for the tip! Calling that command from the same directory where I usually call
I tried then calling The files created by pytest-incremental are in their usual location: Here's the relevant part of my environment, if it helps:
Any other suggestion? |
oh. not that simple... pytest-incremental call doit in some special ways (that even I dont remember), and you will have to call I would need to look at the code, and I am not 100% sure it will work... |
OK thanks for the feedback! I will try to take a look at the code as well when I have some free time. |
Investigated a little further:
I assumed def create_doit_tasks(self):
'''create all tasks used by the incremental plugin
This method is a hook used by doit
'''
yield self.gen_deps()
yield self.gen_print_deps()
yield self.gen_dep_graph_dot()
yield self.gen_dep_graph_image()
yield self.gen_outdated() (Just registering my latest attempt, will continue investigating when got some more time to spare again.) |
Hi,
First of all, thanks for the work on the plugin! 😁
I would like to request a new feature/workflow.
Let me describe my use case:
Before I start working on a new feature, I checkout a "known good" version of the repository, where all tests have passed on our CI servers. I would love to be able to start working by changing some files and have
pytest-incremental
to pick only files affected by my recent changes, skipping all other tests.Currently to make use of
pytest-incremental
I need to first run the full test suite on my machine, which unfortunately is not viable as our tests take a lot of time, even when usingxdist
.The text was updated successfully, but these errors were encountered: