summaryrefslogtreecommitdiff
path: root/test/test_conflicting_plugin_warnings.vader
blob: ebf53c8a79bbc84be74372bc1b180e50703b33ed (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Execute(The after file should have been loaded for real):
  Assert g:loaded_ale_after

Before:
  silent! cd /testplugin/test
  cd ..
  unlet! g:loaded_ale_after

After:
  cd test
  let g:loaded_ale_after = 1
  let g:ale_emit_conflict_warnings = 1
  unlet! g:loaded_syntastic_plugin
  unlet! g:loaded_neomake
  unlet! g:loaded_validator_plugin

Execute(ALE should not warn when nothing extra is installed):
  " Nothing should be thrown when loading the after file.
  source after/plugin/ale.vim

Execute(ALE should warn users when Syntastic is installed):
  let g:loaded_syntastic_plugin = 1

  AssertThrows source after/plugin/ale.vim
  AssertEqual
  \ 'ALE conflicts with Syntastic'
  \ . '. Uninstall it, or disable this warning with '
  \ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
  \ . '*before* plugins are loaded.',
  \ g:vader_exception

Execute(ALE should not warn about Syntastic when the flag is set):
  let g:loaded_syntastic_plugin = 1
  let g:ale_emit_conflict_warnings = 0

  source after/plugin/ale.vim

Execute(ALE should warn users when Neomake is installed):
  let g:loaded_neomake = 1

  AssertThrows source after/plugin/ale.vim
  AssertEqual
  \ 'ALE conflicts with Neomake'
  \ . '. Uninstall it, or disable this warning with '
  \ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
  \ . '*before* plugins are loaded.',
  \ g:vader_exception

Execute(ALE should not warn about Neomake when the flag is set):
  let g:loaded_neomake = 1
  let g:ale_emit_conflict_warnings = 0

  source after/plugin/ale.vim

Execute(ALE should warn users when Validator is installed):
  let g:loaded_validator_plugin = 1

  AssertThrows source after/plugin/ale.vim
  AssertEqual
  \ 'ALE conflicts with Validator'
  \ . '. Uninstall it, or disable this warning with '
  \ . '`let g:ale_emit_conflict_warnings = 0` in your vimrc file, '
  \ . '*before* plugins are loaded.',
  \ g:vader_exception

Execute(ALE should not warn about Validator when the flag is set):
  let g:loaded_validator_plugin = 1
  let g:ale_emit_conflict_warnings = 0

  source after/plugin/ale.vim