2017-05-18 08:31:12 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('xml', 'xmllint')
|
2017-05-18 08:31:12 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-15 17:21:17 +00:00
|
|
|
|
2017-05-18 08:31:12 +00:00
|
|
|
Execute(The xml xmllint command callback should return the correct default string):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'xmllint', ale#Escape('xmllint') . ' --noout -'
|
2017-05-18 08:31:12 +00:00
|
|
|
|
|
|
|
Execute(The xml xmllint command callback should let you set options):
|
|
|
|
let g:ale_xml_xmllint_options = '--xinclude --postvalid'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'xmllint',
|
|
|
|
\ ale#Escape('xmllint') . ' --xinclude --postvalid --noout -'
|
2017-05-18 08:31:12 +00:00
|
|
|
|
|
|
|
Execute(The xmllint executable should be configurable):
|
|
|
|
let g:ale_xml_xmllint_executable = '~/.local/bin/xmllint'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter '~/.local/bin/xmllint',
|
|
|
|
\ ale#Escape('~/.local/bin/xmllint') . ' --noout -'
|