If you use Maven or JUnit it's easy to setup the environment variables used when you run your test classes.
But with Gradle there is not option available. I want to avoid to configure these environment variables where I use to program, because this is not handy once I work with several apps that sometimes have similar env variable names.
Is this a Gradle plugin problem? How are you solving this?
In your gradle build file you can easily specify which environment variables should be set when running the tests by configuring the test
task with test { environment 'VARIABLE', 'value' }
or similar. I do not have it 100% in mind right now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With