BredoGen / ProjectEnv

ProjectEnv plugin provides settings to configure project-wide .env (dotenv), json/yaml files in PyCharm / IDEA / GoLand / etc.
16 stars 8 forks source link

Added option to not apply env in Test run configurations #11

Closed lirikooda closed 2 years ago

lirikooda commented 2 years ago

Couldn't test it well cause the current version of the plugin has the ui broken would be happy to update once refactor is done, or feel free to edit this PR :) The motivation is that many times env vars are for runtime specific stuff and tests define their own mock beans etc. If these mocks then get overridden by env vars, its usually not what you intended :)

BredoGen commented 2 years ago

Thank you for contributing! Can you please add more details about broken UI in the current version (0.1)?

I'll take a look and try to release it with this PR next week.

lirikooda commented 2 years ago

Thank you for contributing! Can you please add more details about broken UI in the current version (0.1)?

I'll take a look and try to release it with this PR next week.

Currently I don't see any UI options in the preferences window (not under "Build, Execution, Deployment" or anywhere else) I just might be missing some new design though

BredoGen commented 2 years ago

Currently I don't see any UI options in the preferences window (not under "Build, Execution, Deployment" or anywhere else) I just might be missing some new design though

New UI provides tool window to manage env files list (left sidebar). The settings are in the gear icon.

Added your action in the gear group, plugin archive with this PR can be found in the last build's artifacts.

lirikooda commented 2 years ago

Currently I don't see any UI options in the preferences window (not under "Build, Execution, Deployment" or anywhere else) I just might be missing some new design though

New UI provides tool window to manage env files list (left sidebar). The settings are in the gear icon.

Added your action in the gear group, plugin archive with this PR can be found in the last build's artifacts.

Oh great I see it now and managed to test it. Thanks!

lirikooda commented 2 years ago

Thanks @BredoGen 🥳