-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Allow env file with "bazel test" #955
Copy link
Copy link
Open
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisnot staleIssues or PRs that are inactive but not considered staleIssues or PRs that are inactive but not considered staleteam-CoreSkyframe, bazel query, BEP, options parsing, bazelrcSkyframe, bazel query, BEP, options parsing, bazelrctype: 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:
docker run --env-fileforeman --env- https://github.com/bkeepers/dotenv
This improvement would allow people to use their existing env files with bazel.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3We're not considering working on this, but happy to review a PR. (No assignee)We're not considering working on this, but happy to review a PR. (No assignee)help wantedSomeone outside the Bazel team could own thisSomeone outside the Bazel team could own thisnot staleIssues or PRs that are inactive but not considered staleIssues or PRs that are inactive but not considered staleteam-CoreSkyframe, bazel query, BEP, options parsing, bazelrcSkyframe, bazel query, BEP, options parsing, bazelrctype: feature request