<#16326 add ability to inject environment variable...
# github-notifications
c
#16326 add ability to inject environment variables for scalatests Issue created by francescoperera Is your feature request related to a problem? Please describe. I am running pants
2.13.0a11
I have a few scala tests that use a
Process
to execute some bash commands that do some cleanup. In addition, we use also a 3rdparty Java class NatsServerRunner that requires the $PATH environment variable to be set and availble. However when running the tests I get an exception because the process cannot recognize the bash commands in the process or the binary used by the 3rdpartyclass Describe the solution you'd like Just like for pytest, add the ability to inject/set the environment variables
Copy code
./pantsv2 test products/datalogue/hermes/test:: --test-extra-env-vars="['PATH=$PATH']"
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Additional context Add any other context or screenshots about the feature request here. pantsbuild/pants