ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.
MIT License
539 stars 129 forks source link

Support enable .env in project #120

Closed ZihaoPri closed 3 years ago

ZihaoPri commented 4 years ago

I have multiple pytests in my project. Every time I run a new test, I need to set up the Envfile inside Run/Debug configuration. It would be nice if there were a way to make it used the same .env file for every test in the project.

vojkny commented 3 years ago

This doesn't concern only tests, but also all the microservices. Each of them require manual setup currently.

ZihaoPri commented 3 years ago

Hi @knyttl, In fact, I found that we could setting environment variables for multiple running objects by using an IDE template configuration. To do this you can open IDE's Run/Debug Configuration to select the type you need and set Envfile for it. image

vojkny commented 3 years ago

Hi @knyttl, In fact, I found that we could setting environment variables for multiple running objects by using an IDE template configuration.

very helpful indeed!