summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorAryeh Leib Taurog <git@aryehleib.com>2019-01-04 08:57:14 +0200
committerAryeh Leib Taurog <git@aryehleib.com>2019-01-04 09:55:35 +0200
commit1f21eb0c422e8ae351981544a7e0da4f369e6144 (patch)
tree9d005542c9d20048f6f6fccbc5572686714cd809 /test/command_callback
parent4a11a6337e37a1e3b5ad28f77f15979ccd47d587 (diff)
downloadale-1f21eb0c422e8ae351981544a7e0da4f369e6144.zip
fallback to elm if elm-tests isn’t available
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_elm_make_command_callback.vader9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/command_callback/test_elm_make_command_callback.vader b/test/command_callback/test_elm_make_command_callback.vader
index 6400e187..02b2d76c 100644
--- a/test/command_callback/test_elm_make_command_callback.vader
+++ b/test/command_callback/test_elm_make_command_callback.vader
@@ -24,6 +24,15 @@ Execute(should get elm-test executable for test code with elm >= 0.19):
\ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/newapp')) . ' && '
\ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
+Execute(should fallback to elm executable with elm >= 0.19):
+ call ale#test#SetFilename('../elm-test-files/newapp-notests/tests/TestMain.elm')
+
+ let g:executable = ale#path#Simplify(g:dir . '/../elm-test-files/newapp-notests/node_modules/.bin/elm')
+
+ AssertLinter g:executable,
+ \ 'cd ' . ale#Escape(ale#path#Simplify(g:dir . '/../elm-test-files/newapp-notests')) . ' && '
+ \ . ale#Escape(g:executable) . ' make --report=json --output=/dev/null %t'
+
Execute(should get plain elm executable for test code with elm < 0.19):
call ale#test#SetFilename('../elm-test-files/oldapp/tests/TestSuite.elm')