diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-16 21:19:07 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-16 21:20:08 +0100 |
commit | 5c778e1ae752163a849609318ace6c3c6a37d6f7 (patch) | |
tree | e63994ca0e20c554caa31b43f7e1a5fa62795b4d /test/fixers | |
parent | 5ceda0164c5fae0d61fd51d4c9e083b27abdc9d2 (diff) | |
download | ale-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/fixers')
-rw-r--r-- | test/fixers/test_eslint_fixer_callback.vader | 4 | ||||
-rw-r--r-- | test/fixers/test_prettier_eslint_fixer.callback.vader | 3 | ||||
-rw-r--r-- | test/fixers/test_prettier_fixer_callback.vader | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/test/fixers/test_eslint_fixer_callback.vader b/test/fixers/test_eslint_fixer_callback.vader index 400267ac..50fc6672 100644 --- a/test/fixers/test_eslint_fixer_callback.vader +++ b/test/fixers/test_eslint_fixer_callback.vader @@ -1,7 +1,11 @@ Before: call ale#assert#SetUpFixerTest('javascript', 'eslint') + Save g:ale_command_wrapper + runtime autoload/ale/handlers/eslint.vim + let g:ale_command_wrapper = '' + After: call ale#assert#TearDownFixerTest() diff --git a/test/fixers/test_prettier_eslint_fixer.callback.vader b/test/fixers/test_prettier_eslint_fixer.callback.vader index 90e11672..f7bb3c61 100644 --- a/test/fixers/test_prettier_eslint_fixer.callback.vader +++ b/test/fixers/test_prettier_eslint_fixer.callback.vader @@ -1,5 +1,8 @@ Before: call ale#assert#SetUpFixerTest('javascript', 'prettier_eslint') + Save g:ale_command_wrapper + + let g:ale_command_wrapper = '' After: call ale#assert#TearDownFixerTest() diff --git a/test/fixers/test_prettier_fixer_callback.vader b/test/fixers/test_prettier_fixer_callback.vader index 062ae8cf..1087a160 100644 --- a/test/fixers/test_prettier_fixer_callback.vader +++ b/test/fixers/test_prettier_fixer_callback.vader @@ -1,5 +1,8 @@ Before: call ale#assert#SetUpFixerTest('javascript', 'prettier') + Save g:ale_command_wrapper + + let g:ale_command_wrapper = '' silent cd .. silent cd command_callback |