-
-
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
pipenv + Appveyor: pytest can't find plugins #3434
Comments
GitMate.io thinks possibly related issues are #1479 (pytest silently stops importing plugins on ImportError), #1978 (pytest not finding any tests under module), #613 (Pytest can't find locally installed projects), #2196 (Pytest on cygwin doesn't find files), and #1652 (plugins resolved by pip instead of core pytest packages). |
at first glance i beleive this is a pipenv issue - pytest uses setuptools entrypoints to find the plugins |
Hi @hoefling, Thanks for providing the sample repository. I've tried it on Windows but it works for me:
Can you please provide the full output of your run? (Note that I'm running from inside a virtualenv with the |
Hi, sorry for the delayed response. I tackled the issue once again and found out that the root of all evil is
This has the effect that although plugin packages are installed, Thus, if you don't mind, I'd propose the issue solved as unrelated to |
I'm having a similar thing going on with pytest-qt plugin. I'm able to verify that it's installed as before I do the test I do a Expand AppVeyor Log
appveyor.yml
|
Hi @j9ac9k, looks like you're also missing
and see if it heals the test run. |
@hoefling looks like that was it! In case you're curious here is the resulting build: https://ci.appveyor.com/project/j9ac9k/timeview/build/1.0.49 In case you were wondering why I'm running the tests twice in two different ways, previously |
Thanks @hoefling for the summary and followup! Since this is not related to pytest, I'm closing this issue. Thanks again. |
same colorama problem we saw a while ago from pytest-dev/pytest#3434
Hi, I have encountered a following issue when playing with
pipenv
in my private projects. When issuingpipenv run pytest
, no plugins are found and the test execution fails sooner or later (either the args inaddopts
, or plugin fixtures are not recognized).I can reproduce this issue on Windows (Appveyor) only, running the builds on Travis succeeds, also the issue is not reproducible on any of my Linux machines (CentOS 7 / Fedora 27 / Ubuntu 16.04 / Debian Jessie) or MacOS High Sierra.
I prepared a small repository that reproduces this issue: pytest-pipenv-sandbox. Here's an example of failing build on Appveyor.
I'm not sure whether this is an issue with
pipenv
orpytest
; I'm fine with rejecting this issue, I will open another one forpipenv
then.The text was updated successfully, but these errors were encountered: