This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_texlab_command_callbacks.vader

28 lines
712 B
Text
Raw Normal View History

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):
AssertLSPProject ''
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