EnvFile
EnvFile copied to clipboard
in pycharm, envfiles not loaded when running tests
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.
Idem here PyCharm 2022.2.4 (Community Edition)
idem here Intellij 2022.2.4 (Ultimate edition)
+ PyCharm 2022.3 (Professional Edition)
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.
The same issue. PyCharm 2022.2.3 (Professional Edition).
Same here. PyCharm 2022.3.1 (Professional Edition).
Intellij 2022.1.4
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.
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!
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.
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