snapshottest
snapshottest copied to clipboard
xdist support
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?
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.
Related to #56