Skip to content

Isolate tests from system environment#317

Merged
vickenty merged 2 commits into
masterfrom
vickenty/ite
Jul 23, 2026
Merged

Isolate tests from system environment#317
vickenty merged 2 commits into
masterfrom
vickenty/ite

Conversation

@vickenty

Copy link
Copy Markdown
Contributor

Gitlab workers have several DD specific environment variables set, which upsets the tests.

This PR adds a withEnvironmentVariables builder option that allows users to supply a custom map that fully replaces system environment variables from the client point of view.

Use this in tests to accurately control which environment variables are set for the test client regardless of executable's environment.

@vickenty
vickenty marked this pull request as ready for review July 23, 2026 12:58
@vickenty
vickenty requested a review from a team as a code owner July 23, 2026 12:58
@vickenty
vickenty merged commit ff2f297 into master Jul 23, 2026
19 checks passed
@vickenty
vickenty deleted the vickenty/ite branch July 23, 2026 17:16
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