summaryrefslogtreecommitdiff
path: root/test/linter/test_v_command_callback.vader
blob: 17f24ad75e21459b6a14e9df187c85b02a132a65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Before:
  Save g:ale_v_v_executable

  call ale#assert#SetUpLinterTest('v', 'v')

  GivenCommandOutput ['/foo/bar', '/foo/baz']

After:
  Restore
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'v', 'v . -o /tmp/vim-ale-v'

Execute(Extra options should be supported):
  let g:ale_v_v_options = '--foo-bar'

  AssertLinter 'v', 'v --foo-bar . -o /tmp/vim-ale-v'

  let g:ale_v_vbuild_options = ''

Execute(The executable should be configurable):
  let g:ale_v_v_executable = 'foobar'

  AssertLinter 'foobar', 'foobar . -o /tmp/vim-ale-v'