summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_tex_chktex.vader27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/linter/test_tex_chktex.vader b/test/linter/test_tex_chktex.vader
index d787ca87..038bd10c 100644
--- a/test/linter/test_tex_chktex.vader
+++ b/test/linter/test_tex_chktex.vader
@@ -1,14 +1,37 @@
Before:
call ale#assert#SetUpLinterTest('tex', 'chktex')
+ GivenCommandOutput ['ChkTeX v1.7.6 - Copyright 1995-96 Jens T. Berger Thielemann']
+
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
- AssertLinter 'chktex',
+ AssertLinter 'chktex', [
+ \ ale#Escape('chktex') . ' --version',
\ ale#Escape('chktex')
\ . ' -v0 -p stdin -q'
- \ . ' -I'
+ \ . ' -I',
+ \]
+
+ " The version check should be cached.
+ GivenCommandOutput []
+ AssertLinter 'chktex', [
+ \ ale#Escape('chktex')
+ \ . ' -v0 -p stdin -q'
+ \ . ' -I',
+ \]
+
+ " Try newer version
+ call ale#semver#ResetVersionCache()
+ GivenCommandOutput ['ChkTeX v1.7.8 - Copyright 1995-96 Jens T. Berger Thielemann']
+ AssertLinter 'chktex', [
+ \ ale#Escape('chktex') . ' --version',
+ \ ale#Escape('chktex')
+ \ . ' -v0 -p stdin -q'
+ \ . ' -S TabSize=1'
+ \ . ' -I',
+ \]
Execute(The executable should be configurable):
let g:ale_tex_chktex_executable = 'bin/foo'