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

pytest-xdist incompatible with generating files #136

Open
ConorMacBride opened this issue Feb 9, 2022 · 0 comments
Open

pytest-xdist incompatible with generating files #136

ConorMacBride opened this issue Feb 9, 2022 · 0 comments

Comments

@ConorMacBride
Copy link
Member

When pytest is run over multiple processes/machines using pytest-xdist, generating files such as baseline images, baseline hashes, result and diff images, and JSON and HTML summaries may not work as expected. This is due to the tests being run in different directories in different processes, as well as information not being shared between processes which is necessary for generating a full summary or hash library.

However, the result of each test will be reported correctly by pytest, so using xdist should be fine if you are not using these pytest-mpl features.

This should be documented, and a warning should be given if using pytest-xdist. Ideally support for pytest-xdist would be added.

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

No branches or pull requests

1 participant