samuelpordeus / vscode-elixir-test

Visual Studio Code extension to interact with elixir tests
MIT License
37 stars 36 forks source link

Prefix MIX_ENV variable for mix test command #79

Closed hackvan closed 1 year ago

hackvan commented 2 years ago

Is there an actual way to set a MIX_ENV=test prefix before the mix test command?

antedeguemon commented 2 years ago

AFAIK this extension doesn't support configuring a custom mix test command.

Even though MIX_ENV=test is the default environment for mix test, I think it can be useful to allow custom commands. So, +1 on the feature request 🙈

samuelpordeus commented 1 year ago

@hackvan @antedeguemon hi folks, replying with less than 365 days! what a lead time!

i'm planning to give some love to the extension this month, will try to include that, but feel free to send a pr!

msramos commented 1 year ago

@hackvan @antedeguemon @samuelpordeus I included the option vscode-elixir-test.mixEnv that will automatically inject MIX_ENV when present.

It will be included in the next release.

Thanks for the suggestion!