From ab7e5b264f27bef8ec8abf795ebe66214d057620 Mon Sep 17 00:00:00 2001 From: rliang Date: Mon, 13 May 2019 15:50:03 -0300 Subject: [linter] Add LSP support for LaTeX via texlab --- .../test_texlab_command_callbacks.vader | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/command_callback/test_texlab_command_callbacks.vader (limited to 'test') diff --git a/test/command_callback/test_texlab_command_callbacks.vader b/test/command_callback/test_texlab_command_callbacks.vader new file mode 100644 index 00000000..ca678d2b --- /dev/null +++ b/test/command_callback/test_texlab_command_callbacks.vader @@ -0,0 +1,27 @@ +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 -- cgit v1.2.3