exunit.el icon indicating copy to clipboard operation
exunit.el copied to clipboard

feature request: allow specifying environment variables

Open Trevoke opened this issue 10 months ago • 3 comments

Hi, thanks for this package!

I'm working on a project now that has some testing behavior managed by environment variables, and it would be nice to be able to manage this as state through the transient menu.

Thanks!

Trevoke avatar Feb 21 '25 19:02 Trevoke

some testing behavior managed by environment variables

Are these ExUnit flags or application specific?

We already have some flags under different level[1], so transient won't show them by default. I am ok adding it under a higher level (5 or higher perhaps)

1: https://www.gnu.org/software/emacs/manual/html_mono/transient.html#Enabling-and-Disabling-Suffixes

ananthakumaran avatar Feb 22 '25 03:02 ananthakumaran

Application-specific. Things to prepend to the mix test call.

Examples:

  • CI=true mix test (CI)
  • LOG_LEVEL=5 mix test (LOG_LEVEL)
  • DYLIB_PATH=/home/foo/bar/lib CLANG_PATH=/usr/bin2/cc mix test (DYLIB_PATH and CLANG_PATH)

Trevoke avatar Feb 22 '25 22:02 Trevoke

Further - I see (and it makes sense) that we have different mix commands for testing and debugging... But I would like to be able to apply dynamically those ENV variables to both without having to change two variables.

Trevoke avatar Feb 28 '25 15:02 Trevoke