Skip to content

Isolate test suite from environment variables#3044

Closed
mislav wants to merge 3 commits intotrunkfrom
env-tests
Closed

Isolate test suite from environment variables#3044
mislav wants to merge 3 commits intotrunkfrom
env-tests

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Feb 26, 2021

A user who runs this repository's test suite could also reasonably have variables like BROWSER or GLAMOUR_STYLE set in their environment. Some of our tests fail because those outside environment variables bleed into tests.

This change introduces a helper to safely stub environment variable values with, as well as configures out test suite in CI to run in an environment with a bunch of values that could possibly affect gh runtime, but shouldn't do so for tests.

@darcyclarke
Copy link

Closing & backlogging work: #4749

@samcoe samcoe deleted the env-tests branch June 28, 2023 04:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants