bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 opened on 2016年2月22日

GitHub で見る
 (18 comments) (26 reactions) (0 assignees)Java (4,465 forks)batch import
P3help wantednot staleteam-Coretype: feature request

Repository metrics

Stars
 (25,384 stars)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

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.

コントリビューターガイド