summaryrefslogtreecommitdiff
path: root/test/linter/test_tex_chktex.vader
blob: d787ca8716e4003eaef3a3f76fcc4212bc9dc685 (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
Before:
  call ale#assert#SetUpLinterTest('tex', 'chktex')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'chktex',
  \ ale#Escape('chktex')
  \   . ' -v0 -p stdin -q'
  \   . ' -I'

Execute(The executable should be configurable):
  let g:ale_tex_chktex_executable = 'bin/foo'

  AssertLinter 'bin/foo',
  \ ale#Escape('bin/foo')
  \   . ' -v0 -p stdin -q'
  \   . ' -I'

Execute(The options should be configurable):
  let b:ale_tex_chktex_options = '--something'

  AssertLinter 'chktex',
  \ ale#Escape('chktex')
  \   . ' -v0 -p stdin -q'
  \   . ' --something'