bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 aperta il 22 feb 2016

Vedi su GitHub
 (18 commenti) (26 reazioni) (0 assegnatari)Java (4465 fork)batch import
P3help wantednot staleteam-Coretype: feature request

Metriche repository

Star
 (25.384 star)
Metriche merge PR
 (Merge medio 22g 20h) (77 PR mergiate in 30 g)

Descrizione

Currently, you can pass environment variables one at a time with --test_env. It would be nice to be able to pass an entire file of env variables to bazel test with something like:

bazel test --test_env_file=.env //...

env are becoming semi-standard, and lots of tools understand how to read them. For example:

This improvement would allow people to use their existing env files with bazel.

Guida contributor