summaryrefslogtreecommitdiff
path: root/test/lsp
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2020-08-16 21:19:07 +0100
committerw0rp <devw0rp@gmail.com>2020-08-16 21:20:08 +0100
commit5c778e1ae752163a849609318ace6c3c6a37d6f7 (patch)
treee63994ca0e20c554caa31b43f7e1a5fa62795b4d /test/lsp
parent5ceda0164c5fae0d61fd51d4c9e083b27abdc9d2 (diff)
downloadale-5c778e1ae752163a849609318ace6c3c6a37d6f7.zip
Make it easier to run tests locally
Certain tests could break if you ran them separately from other tests. They have been patched. `run-tests` now has a `--fast` option which runs tests with only the fastest Vim version ALE tests with, and the custom checks.
Diffstat (limited to 'test/lsp')
-rw-r--r--test/lsp/test_lsp_command_formatting.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_command_formatting.vader b/test/lsp/test_lsp_command_formatting.vader
index ec3b4120..2c1e8788 100644
--- a/test/lsp/test_lsp_command_formatting.vader
+++ b/test/lsp/test_lsp_command_formatting.vader
@@ -1,6 +1,10 @@
Before:
+ Save g:ale_command_wrapper
+
runtime autoload/ale/lsp.vim
+ let g:ale_command_wrapper = ''
+
let g:args = []
" Mock the StartProgram function so we can just capture the arguments.
@@ -9,6 +13,8 @@ Before:
endfunction
After:
+ Restore
+
unlet! g:args
runtime autoload/ale/lsp.vim