scottming/iex-unit

Please consider honouring the mix.exs settings for test_paths instead of hard coding it to "tests/"

Closed this issue · 1 comments

Mix takes the directories in which to look for test_helper.exs from the mix.exs project config test_paths variable. Please consider supporting this too, instead of hard coding test/test_helper.exs. Perhaps something like Mix.Project.config[:test_paths] can be used to get a list of paths instead.

Alternatively, if this isn't something you want to support, since I can get it working by manually running IExUnit.load_helper("path/to/test_helper.exs"), I would also be satisfied with the workaround of adding a setting to vscode-elixir-test-in-iex allowing custom values to pass to IExUnit.load_helper on startup (so I don't need to manually do it, basically).

Thanks!

Ahh, nevermind, it looks like it would take a lot more reworking of the vscode-elixir-test-in-iex extension to get it to work properly, eg to detect and send the correct file to execute tests from. Pity.