samuelpordeus / vscode-elixir-test

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

Support multiple projects #69

Closed bengro closed 12 months ago

bengro commented 3 years ago

I'm working in a multi-project setting, like so:

root (no mix file)
- ProjectA (mix project)
- ProjectB (mix project)
- ProjectC (no mix project)

When I run the tests in ProjectA or ProjectB I'm getting: ** (Mix) Could not find a Mix.Project, please ensure you are running Mix in a directory with a mix.exs file

I'm assuming this is because it's looking for the mix file in the root.

When I cd into the project directory it works. It's just a shame I have to switch back and forth.

It would be great to support mono repos with multiple mix projects in it.

Thoughts?

samuelpordeus commented 3 years ago

Agreed. Not my use case, but it would be nice to have. If you are interested, feel free to open a PR for it 🙂

msramos commented 12 months ago

@bengro @samuelpordeus I've added support for workspaces with multiple projects on the main branch. It will be included in the next release.

Thanks for the suggestion!