-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
-p no:pluginname on pytest 2.9.x ignored on xdist slave node #1618
Comments
Thanks for the report! I would guess the problem is that the option is not being interpreted correctly by the workers, but this needs more investigation. |
we finished the investigation, your conftest imports the plugin addoption function so pytest sees an addoption hook in 2 different plugins, thus runs it twice and ends with an conflict |
after re-reading the message, there is probably more to it :) |
a quick run down of the conditions
|
after finishing investigation the issue is enforced by plugin blockers in xdist only being interpreted after initial loading of setuptools plugins, thus the plugin in dbfixtures gets loaded, then unloaded, but the effects of the addoption stay |
0e55a87 was part of it |
9c54958 introduced it |
additionally prevent unnecessary importation of blocked plugins
additionally prevent unnecessary importation of blocked plugins
@RonnyPfannschmidt how's the status on this issue? |
Oh #1673 attempts to solve this. |
…leman_protocol and signing_service Due to a BUG in pytest: (pytest-dev/pytest#1618) `-p no:django` doesn't work for parallel runs, causing pytest to expect Django setup in non-Django apps and thus failing.
…leman_protocol and signing_service Due to a BUG in pytest: (pytest-dev/pytest#1618) `-p no:django` doesn't work for parallel runs, causing pytest to expect Django setup in non-Django apps and thus failing.
I believe this has already been fixed with the config changes in pytest-xdist; if not we can reopen this later. |
For pytest-dbfxitures plugin we run tests both with pytest-xdist and without to make sure we cover all the possibilities on travis. However, when running on xdist on pytest 2.9.x I get
argparse.ArgumentError: argument --dbfixtures-config: conflicting option string: --dbfixtures-config
to get the full coverage we run tests without the plugin (
-p no:bfixtures
) and import all pytest's plugins triggers in main conftest. It worked perfectly till the 2.9.x version, where it seems under xdist, the plugin is being loaded even thouth the options states it not to load.py.test 2.9.2 and os is anything travis runs its tests on, and ubuntu 16.4
example https://github.com/ClearcodeHQ/pytest-dbfixtures and pull request I;m trying to upgreade the py.test on without sacrificing coverage.
The text was updated successfully, but these errors were encountered: