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('elm', 'make')
7 call ale#assert#TearDownLinterTest()
9 Execute(should get valid executable with default params):
10 call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm')
12 let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm')
14 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp')
15 AssertLinter g:executable,
16 \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
18 Execute(should get elm-test executable for test code with elm >= 0.19):
19 call ale#test#SetFilename('../test-files/elm/newapp/tests/TestSuite.elm')
21 let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm-test')
23 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp')
24 AssertLinter g:executable,
25 \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null --compiler '
26 \ . ale#path#Simplify(g:dir . '/../test-files/elm/newapp/node_modules/.bin/elm') . ' %t'
28 Execute(should fallback to elm executable with elm >= 0.19):
29 call ale#test#SetFilename('../test-files/elm/newapp-notests/tests/TestMain.elm')
31 let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/newapp-notests/node_modules/.bin/elm')
33 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp-notests')
34 AssertLinter g:executable,
35 \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
37 Execute(should get plain elm executable for test code with elm < 0.19):
38 call ale#test#SetFilename('../test-files/elm/oldapp/tests/TestSuite.elm')
40 let g:executable = ale#path#Simplify(g:dir . '/../test-files/elm/oldapp/node_modules/.bin/elm')
42 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/oldapp')
43 AssertLinter g:executable,
44 \ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
46 Execute(should get valid executable with 'use_global' params):
47 let g:ale_elm_make_use_global = 1
49 call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm')
51 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp')
53 \ ale#Escape('elm') . ' make --report=json --output=/dev/null %t'
55 Execute(should get valid executable with 'use_global' and 'executable' params):
56 let g:ale_elm_make_executable = 'other-elm'
57 let g:ale_elm_make_use_global = 1
59 call ale#test#SetFilename('../test-files/elm/newapp/src/Main.elm')
61 AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/elm/newapp')
62 AssertLinter 'other-elm',
63 \ ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t'