summaryrefslogtreecommitdiff
path: root/test/command_callback/test_dartanalyzer_command_callback.vader
blob: 62b1d6367be16d2af55f67714dc9059fa5ca1d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Before:
  call ale#assert#SetUpLinterTest('dart', 'dartanalyzer')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default command and executable should be correct):
  AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer') . ' %s'

Execute(The executable should be configurable):
  let g:ale_dart_dartanalyzer_executable = 'foobar'

  AssertLinter 'foobar', ale#Escape('foobar') . ' %s'

Execute(The .packages file should be set if detected):
  call ale#test#SetFilename('dart_paths/foo')

  AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer')
  \   . ' --packages ' . ale#Escape(ale#path#Simplify(g:dir . '/dart_paths/.packages'))
  \ . ' %s'