summaryrefslogtreecommitdiff
path: root/test/command_callback/test_texlab_command_callbacks.vader
blob: c18793da6f001d32d8f4000dcbae4784078d9f47 (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
26
27
28
29
30
Before:
  call ale#assert#SetUpLinterTest('tex', 'texlab')
  
  Save &filetype
  let &filetype = 'tex'

After:
  call ale#assert#TearDownLinterTest()

Execute(The language string should be correct):
  AssertLSPLanguage 'tex'

Execute(The default executable path should be correct):
  AssertLinter 'texlab', ale#Escape('texlab')

Execute(The project root should be detected correctly):
  call ale#test#SetFilename('tex_paths/sample1.tex')
  silent! call mkdir('tex_paths/.git')
  
  AssertLSPProject ale#path#Simplify(g:dir . '/tex_paths')

Execute(The executable should be configurable):
  let b:ale_tex_texlab_executable = 'foobar'

  AssertLinter 'foobar', ale#Escape('foobar')

Execute(The options should be configurable):
  let b:ale_tex_texlab_options = '-v'

  AssertLinter 'texlab', ale#Escape('texlab') . ' ' . b:ale_tex_texlab_options