bazelbuild/bazel

Allow env file with "bazel test"

Open

#955 ouverte le 22 févr. 2016

Voir sur GitHub
 (18 commentaires) (26 réactions) (0 assignés)Java (4 465 forks)batch import
P3help wantednot staleteam-Coretype: feature request

Métriques du dépôt

Stars
 (25 384 stars)
Métriques de merge PR
 (Merge moyen 22j 20h) (77 PRs mergées en 30 j)

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.

Guide contributeur