Test Runner run() should support env optionΒ #60709
Copy link
Copy link
Closed
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
What is the problem this feature will solve?
Programmatic configuration of environment variables for test runner.
What is the feature you are proposing to solve the problem?
Add a env option similar to that in spawn or exec
What alternatives have you considered?
My current work around is to just set env variables directly before calling run().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Type
Projects
- StatusShow more project fieldsAwaiting Triage
Activity
Ethan-Arrowood commentedon Nov 13, 2025
I will contribute this
pmarchini commentedon Dec 2, 2025
Hey @Ethan-Arrowood, we don't usually assign issues π
Any news about the state of the issue? π
Ethan-Arrowood commentedon Dec 2, 2025
Yeah - I gave it a try a while back but wasn't able to solve it immediately and had more important things to do so its got bumped down my list. Still planning to fix it eventually. Very actively relying on this behavior in my open source work here HarperFast/harper#27
test_runner: add env option to run function
test_runner: add env option to run function
test_runner: add env option to run function
test_runner: add env option to run function
test_runner: add env option to run function
test_runner: add env option to run function