-
Notifications
You must be signed in to change notification settings - Fork 4
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
Testing of pytest
fails with pytest-enabler
#10
Comments
I recommend not installing pytest-enabler except in environments where you want the effect of pytest-enabler to take place. It's primary purpose is to automatically supply defaults based on the presence of plugins. If you plan to run pytest tests in an environment with pytest-enabler and any plugins it supports, you'll probably want to disable the enabler with something like Let me know if you think this project should be doing something differently. |
I don't care for the fact that the plugin must be referred as "plugin-enabled options". That probably should be just "enabler". I'm considering renaming that, but unsure when or how, so I'll await some feedback here first. |
The need for the The only problem is that I think that means that either |
Yes, "plugin-enabled options" is ugly, but I can live with it :-). Honestly, I do not care much about the exact name. I do not mind if you rename it to "enabler" or to any different name. Just please do not do the rename too often :-)). |
It's true -
That's unexpected. I'd like to understand why that is, as it may reveal a deficiency in pytest. |
After thinking a bit more about this... I think the |
Today I played a bit with testing of When I ran tests for
When I try with either So it looks like that my claim above:
is not fully true. It is true only when |
FYI, I filled a bug for |
Me neither. This project doesn't do anything particularly idiosyncratic except how it handles enabling pytest-cov, and even then, everything must be happening through the entry point. |
It looks like the bug reported in pluggy fully covers the deficiency described above. I don't think there's anything else that |
When there is
pytest-enabler
installed together with eitherpytest-black
and/orpytest-mypy
and/orpytest-cov
then running test forpytest
fails with errors like this one:More details: pytest-dev/pytest#11401
The text was updated successfully, but these errors were encountered: