IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/configuration You can read about the migration, and let us know what you think.Extensions > API reference > configuration
configurationThis object holds information about the environment in which the build is running. See the Rules page for more on the general concept of configurations.
bool configuration.coverage_enabledA boolean that tells whether code coverage is enabled for this run. Note that this does not compute whether a specific rule should be instrumented for code coverage data collection. For that, see the
dict configuration.default_shell_envA dictionary representing the static local shell environment. It maps variables to their values (strings).
string configuration.host_path_separatorReturns the separator for PATH environment variable, which is ':' on Unix.
dict configuration.test_envA dictionary containing user-specified test environment variables and their values, as set by the --test_env options. DO NOT USE! This is not the complete environment!