summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorrliang <ricardoliang@gmail.com>2019-05-13 15:50:03 -0300
committerrliang <ricardoliang@gmail.com>2019-05-13 15:50:03 -0300
commitab7e5b264f27bef8ec8abf795ebe66214d057620 (patch)
treefc45c2a46640c5e51f093463dcef88d531430786 /test/command_callback
parentc88ebc5e70852c9571aa7a94b5eb28df000d693a (diff)
downloadale-ab7e5b264f27bef8ec8abf795ebe66214d057620.zip
[linter] Add LSP support for LaTeX via texlab
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_texlab_command_callbacks.vader27
1 files changed, 27 insertions, 0 deletions
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