Permalink
Browse files

cd into root folder before running mix test

Right now the test build system does not really work when opening whole project directory in sublime.

```
** (Mix) Could not find a Mix.Project, please ensure a mix.exs file is available
[Finished in 0.4s with exit code 1]
[cmd: ['mix', 'test']]
[dir: /some/path/to/project/test]
```
  • Loading branch information...
1 parent 9991087 commit 0e9ea0af7cf93f77e7ffa7a1074b36deb0c745e6 @teamon teamon committed Apr 4, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 elixir-mix-test.sublime-build
@@ -1,5 +1,5 @@
{
- "cmd": ["mix", "test"],
+ "shell_cmd": "cd $folder && mix test",
"working_dir": "${project_path}",
"selector": "source.elixir"
}

0 comments on commit 0e9ea0a

Please sign in to comment.