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.
2 call ale#assert#SetUpLinterTest('tex', 'alex')
3 call ale#test#SetFilename('test_file.tex')
6 call ale#assert#TearDownLinterTest()
8 Execute(The global executable should be used when the local one cannot be found):
10 \ ale#Escape('alex') . ' --stdin --text',
12 Execute(Should use the node_modules/.bin executable, if available):
13 call ale#test#SetFilename('../test-files/alex/node-modules/test_file.tex')
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',
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')
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',
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')
30 let g:ale_alex_executable = '/path/to/custom/alex'
31 let g:ale_alex_use_global = 1
33 AssertLinter '/path/to/custom/alex',
34 \ ale#Escape('/path/to/custom/alex') . ' --stdin --text'