nvim-neotest / neotest

An extensible framework for interacting with tests within NeoVim.
MIT License
2.2k stars 107 forks source link

[Feature Request] Enable setting custom environment variables for summary runs #431

Closed lukerops closed 1 month ago

lukerops commented 1 month ago

I use a custom set of environment variables for each project I work on and it works successfully with the lua API, but sometimes I want to run all the tests in the project and I can't get it to work. Running the test in summary doesn't allow me to set the environment variables I want to use.

rcarriga commented 1 month ago

I've added a new augment option for the run consumer if you want to check it out in https://github.com/nvim-neotest/neotest/pull/437, I believe it'll work for your use case

lukerops commented 1 month ago

I tried with your PR code and it worked perfectly!!