summaryrefslogtreecommitdiff
path: root/test/command_callback/test_textlint_command_callbacks.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2021-03-21 00:21:49 +0000
committerw0rp <devw0rp@gmail.com>2021-03-21 00:25:33 +0000
commitf7852dbd0a063d6d82ee17a5057fea53cb79b21d (patch)
tree00b98a3c668af9313eedd6936475c81eeef7e9b8 /test/command_callback/test_textlint_command_callbacks.vader
parent35caaecc9fc5822f0474e913d0b7655048fd30ee (diff)
downloadale-f7852dbd0a063d6d82ee17a5057fea53cb79b21d.zip
#3633 - Move linter tests into test/linter
Diffstat (limited to 'test/command_callback/test_textlint_command_callbacks.vader')
-rw-r--r--test/command_callback/test_textlint_command_callbacks.vader65
1 files changed, 0 insertions, 65 deletions
diff --git a/test/command_callback/test_textlint_command_callbacks.vader b/test/command_callback/test_textlint_command_callbacks.vader
deleted file mode 100644
index 6ec42b2d..00000000
--- a/test/command_callback/test_textlint_command_callbacks.vader
+++ /dev/null
@@ -1,65 +0,0 @@
-" Author: januswel, w0rp
-
-Before:
- " This is just one language for the linter.
- call ale#assert#SetUpLinterTest('markdown', 'textlint')
-
- " The configuration is shared between many languages.
- Save g:ale_textlint_executable
- Save g:ale_textlint_use_global
- Save g:ale_textlint_options
-
- let g:ale_textlint_executable = 'textlint'
- let g:ale_textlint_use_global = 0
- let g:ale_textlint_options = ''
-
- unlet! b:ale_textlint_executable
- unlet! b:ale_textlint_use_global
- unlet! b:ale_textlint_options
-
-After:
- unlet! b:command_tail
- unlet! b:ale_textlint_executable
- unlet! b:ale_textlint_use_global
- unlet! b:ale_textlint_options
-
- call ale#assert#TearDownLinterTest()
-
-Execute(The default command should be correct):
- AssertLinter 'textlint',
- \ ale#Escape('textlint') . ' -f json --stdin --stdin-filename %s'
-
-Execute(The executable should be configurable):
- let b:ale_textlint_executable = 'foobar'
-
- AssertLinter 'foobar',
- \ ale#Escape('foobar') . ' -f json --stdin --stdin-filename %s'
-
-Execute(The options should be configurable):
- let b:ale_textlint_options = '--something'
-
- AssertLinter 'textlint',
- \ ale#Escape('textlint') . ' --something -f json --stdin --stdin-filename %s'
-
-Execute(The local executable from .bin should be used if available):
- call ale#test#SetFilename('../test-files/textlint/with_bin_path/foo.txt')
-
- AssertLinter
- \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'),
- \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_bin_path/node_modules/.bin/textlint'))
- \ . ' -f json --stdin --stdin-filename %s'
-
-Execute(The local executable from textlint/bin should be used if available):
- call ale#test#SetFilename('../test-files/textlint/with_textlint_bin_path/foo.txt')
-
- if has('win32')
- AssertLinter
- \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'),
- \ ale#Escape('node.exe') . ' ' . ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'))
- \ . ' -f json --stdin --stdin-filename %s'
- else
- AssertLinter
- \ ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'),
- \ ale#Escape(ale#path#Simplify(g:dir . '/../test-files/textlint/with_textlint_bin_path/node_modules/textlint/bin/textlint.js'))
- \ . ' -f json --stdin --stdin-filename %s'
- endif