mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-11 06:51:52 +08:00
test elm-make changes to rootdir when elm.json is found
most projects will have an elm.json file (>= 0.19) or elm-package.json (< 0.19)
This commit is contained in:
@@ -12,7 +12,8 @@ Execute(should get valid executable with default params):
|
|||||||
let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/app/node_modules/.bin/elm')
|
let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/app/node_modules/.bin/elm')
|
||||||
|
|
||||||
AssertLinter g:executable,
|
AssertLinter g:executable,
|
||||||
\ ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
|
\ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && '
|
||||||
|
\ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
|
||||||
|
|
||||||
Execute(should get valid executable with 'use_global' params):
|
Execute(should get valid executable with 'use_global' params):
|
||||||
let g:ale_elm_make_use_global = 1
|
let g:ale_elm_make_use_global = 1
|
||||||
@@ -20,7 +21,8 @@ Execute(should get valid executable with 'use_global' params):
|
|||||||
call ale#test#SetFilename('../elm-test-files/app/testfile.elm')
|
call ale#test#SetFilename('../elm-test-files/app/testfile.elm')
|
||||||
|
|
||||||
AssertLinter 'elm',
|
AssertLinter 'elm',
|
||||||
\ ale#Escape('elm') . ' make --report=json --output=/dev/null %t'
|
\ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && '
|
||||||
|
\ . ale#Escape('elm') . ' make --report=json --output=/dev/null %t'
|
||||||
|
|
||||||
Execute(should get valid executable with 'use_global' and 'executable' params):
|
Execute(should get valid executable with 'use_global' and 'executable' params):
|
||||||
let g:ale_elm_make_executable = 'other-elm'
|
let g:ale_elm_make_executable = 'other-elm'
|
||||||
@@ -29,4 +31,5 @@ Execute(should get valid executable with 'use_global' and 'executable' params):
|
|||||||
call ale#test#SetFilename('../elm-test-files/app/testfile.elm')
|
call ale#test#SetFilename('../elm-test-files/app/testfile.elm')
|
||||||
|
|
||||||
AssertLinter 'other-elm',
|
AssertLinter 'other-elm',
|
||||||
\ ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t'
|
\ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/app')) . ' && '
|
||||||
|
\ . ale#Escape('other-elm') . ' make --report=json --output=/dev/null %t'
|
||||||
|
|||||||
0
test/elm-test-files/app/elm.json
Normal file
0
test/elm-test-files/app/elm.json
Normal file
Reference in New Issue
Block a user