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

in pycharm, envfiles not loaded when running tests #202

Open
trondhindenes opened this issue Nov 15, 2022 · 11 comments
Open

in pycharm, envfiles not loaded when running tests #202

trondhindenes opened this issue Nov 15, 2022 · 11 comments

Comments

@trondhindenes
Copy link

Hi,
In pycharm 2022.2, envfile works as expected when running/debugging. However, when executing a test wiht pycharm's pytest runner it does not - no environment variables are loaded.

@panicoenlaxbox
Copy link

panicoenlaxbox commented Nov 25, 2022

Idem here
PyCharm 2022.2.4 (Community Edition)

@acurvers
Copy link

idem here
Intellij 2022.2.4 (Ultimate edition)

@alphavector
Copy link

alphavector commented Dec 27, 2022

+
PyCharm 2022.3 (Professional Edition)

@koliber
Copy link

koliber commented Jan 16, 2023

I have the same issue. PyCharm 2022.3 Professional.
The documentation mentions something about items in italic working only in the paid version. The Django and Django test run targets are in italic. However, I could not find anything about how to buy the paid version of the plugin. @ashald I'd consider buying, but please share more instructions about that.

@i-zhivetiev
Copy link

i-zhivetiev commented Jan 18, 2023

The same issue. PyCharm 2022.2.3 (Professional Edition).

@jlpoveda-jt
Copy link

Same here. PyCharm 2022.3.1 (Professional Edition).

@AndrewShakinovsky-SAS
Copy link

Intellij 2022.1.4

@zack-kimble
Copy link

zack-kimble commented Mar 23, 2023

Same issue, PyCharm 2022.3.3 (Professional Edition), but only when using "autodetect" for Python test configurations. Explicitly setting a test runner in Settings>Tools>Python Integrated Tools fixes the problem for me.

@martinzarza
Copy link

Same issue, PyCharm 2022.3.3 (Professional Edition), but only when using "autodetect" for Python test configurations. Explicitly setting a test runner in Settings>Tools>Python Integrated Tools fixes the problem for me.

This solved the issue for me. Thanks!

@martimors
Copy link

Facing this. Does anyone know of a maintained alternative to this plugin? I wish pycharm could support this basic functionality that VSCode has had basically since it launched.

@kjyv
Copy link

kjyv commented Apr 10, 2024

It seems specifying the .env file again in the Paths to ".env" files field for the autodetect template also helps. Still, would be nice if this could be fixed properly in EnvFile

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