-
Notifications
You must be signed in to change notification settings - Fork 232
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
Workers did not share option from controller #800
Comments
Is there any workaround here? |
Just found this issue too while studying. |
@ltsuda, you can pass url through console argument: |
wow! pretty cool! Thanks a lot, the only problem then is using on pytest.ini/pyproject.toml. Well, I got the idea from your comment and it worked. In pyproject.toml I use the base url in the addopts = "-ra -q --base-url=http://frontend:3001" |
starting pytest-xdist==1.30.0(Oct 1, 2019) config.option may not be shared between controller and worker processes
sample
pytest.ini
test_base_url.py
this assert fail when run on xdist workers
and pass when run without it
pytest.ini
pytest-xdist==2.5.0
pytest-base-url==2.0.0
pytest==7.1.2
The text was updated successfully, but these errors were encountered: