microsoft / vscode-test-cli

Command-line runner for VS Code tests
MIT License
19 stars 7 forks source link

Add env file support #47

Closed lramos15 closed 1 month ago

lramos15 commented 2 months ago

Similar to how debug launch configurations support env files, it would be nice to support env files in .vscode-test.mjs.

connor4312 commented 2 months ago

Note that on Node 20 you can pass node --env-file=.env ... but this is awkward when calling a CLI app

connor4312 commented 1 month ago

I'm not sure I plan to do anything special here, it's easy enough for folks who want this to grab dotenv and pass that in their configs.