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

xdist support #107

Open
martijnthe opened this issue Jan 17, 2020 · 2 comments
Open

xdist support #107

martijnthe opened this issue Jan 17, 2020 · 2 comments
Labels

Comments

@martijnthe
Copy link

Thanks for creating snapshottest!

We're using xdist to distribute test runs to multiple processes.

xdist will happily distribute tests from a single .py file to different processes. If I'm not mistaken, there will be a separate book-keeping in each process on what snapshot has been used or not. I did not see any code that would prevent this.

In the case tests from a single file are distributed to different processes, the result of --snapshot-update will be incorrect.

Can you confirm this is a problem?

@paulmelnikow
Copy link
Collaborator

Why is the result of --snapshot-update incorrect when the tests are spawned out to subprocesses? It would be helpful if you could create a repo that illustrates the problem.

I wonder if the fix might be to provide a way to pass this option through an environment variable, which subprocesses would then automatically inherit.

@paulmelnikow
Copy link
Collaborator

Related to #56

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

No branches or pull requests

2 participants