summaryrefslogtreecommitdiff
path: root/test/command_callback/test_elixir_mix_command_callbacks.vader
blob: 18fb13ed440f5ed7c546ccf232285d7eaa12fc9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('elixir', 'mix')

  let g:env_prefix = has('win32')
  \ ? 'set MIX_BUILD_PATH=' . ale#Escape('TEMP_DIR') . ' && '
  \ : 'MIX_BUILD_PATH=' . ale#Escape('TEMP_DIR') . ' '

After:
  unlet! g:env_prefix

  call ale#assert#TearDownLinterTest()

Execute(The default mix command should be correct):
  call ale#test#SetFilename('mix_paths/wrapped_project/lib/app.ex')

  AssertLinter 'mix',
  \ ale#path#CdString(ale#path#Simplify(g:dir . '/mix_paths/wrapped_project'))
  \ . g:env_prefix
  \ . 'mix compile %s'