Use case regressed in #30644.
Something simple like std.testing.environ would suffice. It should be a compile error when not testing to access this API.
Use case regressed in #30644.
Something simple like std.testing.environ would suffice. It should be a compile error when not testing to access this API.
FWIW, I think most of my uses of env from tests are actually cases where I need run-time parameters to tests, and env is more of a work-around:
update? flag to a snapshot-testing libraryFor all above use-cases, I think I'd actually prefer zig test test.zig -- --update-snapshots over UPDATE_SNAPSHOS=1 zig test test.zig, as I am parametrizing tests "cooperatively", and I don't need implicit propagation behavior of env vars.
At the same time, there's at least one case where I need specifically access to env: sometimes I use CI variable to sanity-check that dev behaviors (like skipping tests, or updating snapshots) cannot happen on CI. Here, I rely on vars being propagated automatically and implicitly, such that sanity check works even if I mess up something in build.zig or ci.yml.
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?