bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 opened on Feb 22, 2016

View on GitHub
 (18 comments) (26 reactions) (0 assignees)Java (25,384 stars) (4,465 forks)batch import
P3help wantednot staleteam-Coretype: feature request

Description

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.

Contributor guide