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

Issue to generate correctly html repport while using xdist options #239

Open
ClementLaplace opened this issue Mar 12, 2025 · 2 comments
Open

Comments

@ClementLaplace
Copy link

Hello I'm using the mpl packages to enable the comparison for hundread of images. This process takes a while in sequential mode
so I have decided to use the xdist plugin in pytest. When I'm combining mpl and xdist plugins it works well and I have my tests that are really speed up. However I wanted to generate this html report and unfortunately it does not work, I get empty pages (see image bellow) with no files shown, even if in the result directory I get the directories containing images of basefile and results.

Image

Image

I have done this command line

pytest -n 6 --mpl --mpl-baseline-path=baseline --mpl-results-path=results --mpl-generate-summary=html,json --mpl-use-full-test-name

Here is my informations about my packages bellow

platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0
Matplotlib: 3.10.0
Freetype: 2.12.1
rootdir:  /home/claplace/project/pysat
plugins: mpl-0.17.0, xdist-3.6.1, mock-3.14.0

If I remove the -n 6 option which is from xdist to enable to parralelise test on 6 cores the html repport is working well.
So I wanted to know if there is a way to handle the html repport generation correctly while using xdist ?

@ConorMacBride
Copy link
Member

Hi @ClementLaplace, unfortunately reports cannot be generated correctly when using pytest-xdist. I looked into this before but couldn't find an obvious simple fix, but I'm sure a fix exists! #136

@ClementLaplace
Copy link
Author

@ConorMacBride thanks for your awnser and your work on this plugin.

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

2 participants