-
Notifications
You must be signed in to change notification settings - Fork 26
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
Empty report when running with pytest-xdist #2
Comments
i am thinking about adding a test and minimal implementation to document the absence of integration between xdist and memray. What is better: |
Is there a way we can instead add support for xdist? |
Yes, but is not trivial. The problem is that currently the information is collected by every worker but the process that is orchestrating the build is the want printing of the summary and when is going done it finds no information because the workers are not sending the information back. Another problem is that we should not leave the result files lying around until the full test suite finishes because it may be a lot of data (currently we delete the files after every test finishes so they never pile up). |
I'm fine with displaying a usage error for now and nudge to |
I will add a test and code for the |
A minor correction: it should be |
Bug Report
Current Behavior The plugin produces an empty output when running tests with pytest-xdist.
Input Code
Running multiple processes:
Running without distribution:
Environment
Possible-solutions: For the beginning, it would be sufficient to detect running tests with pytest-xdist and warn the user that
-n0
is required to make pytest-memray work. Of course, moving forward, it would be great to make both plugins work together. Running tests in a single process is too hardcore for some projects.The text was updated successfully, but these errors were encountered: