]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/linter/test_alex.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / linter / test_alex.vader
1 Before:
2   call ale#assert#SetUpLinterTest('tex', 'alex')
3   call ale#test#SetFilename('test_file.tex')
4
5 After:
6   call ale#assert#TearDownLinterTest()
7
8 Execute(The global executable should be used when the local one cannot be found):
9   AssertLinter 'alex',
10   \ ale#Escape('alex') . ' --stdin --text',
11
12 Execute(Should use the node_modules/.bin executable, if available):
13   call ale#test#SetFilename('../test-files/alex/node-modules/test_file.tex')
14
15   AssertLinter ale#path#Simplify(g:dir . '/../test-files/alex/node-modules/node_modules/.bin/alex'),
16   \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/alex/node-modules/node_modules/.bin/alex'))
17   \ . ' --stdin --text',
18
19 Execute(Should use the node_modules/alex executable, if available):
20   call ale#test#SetFilename('../test-files/alex/node-modules-2/test_file.tex')
21
22   AssertLinter ale#path#Simplify(g:dir . '/../test-files/alex/node-modules-2/node_modules/alex/cli.js'),
23   \ (has('win32') ? 'node.exe ' : '')
24   \ . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/alex/node-modules-2/node_modules/alex/cli.js'))
25   \ . ' --stdin --text',
26
27 Execute(Should let users configure a global executable and override local paths):
28   call ale#test#SetFilename('../test-files/write-good/node-modules-2/test_file.tex')
29
30   let g:ale_alex_executable = '/path/to/custom/alex'
31   let g:ale_alex_use_global = 1
32
33   AssertLinter '/path/to/custom/alex',
34   \ ale#Escape('/path/to/custom/alex') . ' --stdin --text'