2017-07-18 18:57:33 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('dart', 'dartanalyzer')
|
2017-07-18 18:57:33 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-18 18:57:33 -04:00
|
|
|
|
|
|
|
Execute(The default command and executable should be correct):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer') . ' %s'
|
2017-07-18 18:57:33 -04:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
2018-07-15 13:24:53 -04:00
|
|
|
let g:ale_dart_dartanalyzer_executable = 'foobar'
|
2017-07-18 18:57:33 -04:00
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' %s'
|
2017-07-18 18:57:33 -04:00
|
|
|
|
|
|
|
Execute(The .packages file should be set if detected):
|
|
|
|
call ale#test#SetFilename('dart_paths/foo')
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer')
|
2017-12-19 13:23:09 -05:00
|
|
|
\ . ' --packages ' . ale#Escape(ale#path#Simplify(g:dir . '/dart_paths/.packages'))
|
2018-07-15 13:24:53 -04:00
|
|
|
\ . ' %s'
|