summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-10-29 17:21:01 +0000
committerGitHub <noreply@github.com>2019-10-29 17:21:01 +0000
commite259dd525f94576ff40f7ee6a0605229e37506e3 (patch)
tree392f68193f82e08b45c1b0bf384c480af4a7beff /test
parent9a0b604a992730889bcac660db8710f336505262 (diff)
parent95b8689835d4d9efca8a513599bcd3d83542c6bd (diff)
downloadale-e259dd525f94576ff40f7ee6a0605229e37506e3.zip
Merge pull request #2819 from greg0ire/psalm_extra_options
Add the possiblity to add extra psalm options
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_psalm_command_callbacks.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/command_callback/test_psalm_command_callbacks.vader b/test/command_callback/test_psalm_command_callbacks.vader
index 74c68d43..70b5af95 100644
--- a/test/command_callback/test_psalm_command_callbacks.vader
+++ b/test/command_callback/test_psalm_command_callbacks.vader
@@ -22,6 +22,14 @@ Execute(Vendor executables should be detected):
\ . '/psalm-project/vendor/bin/psalm'
\ )) . ' --language-server'
+Execute(User provided options should be used):
+ let g:ale_psalm_langserver_options = '--my-user-provided-option my-value'
+
+ AssertLinter 'psalm',
+ \ ale#Escape('psalm')
+ \ . ' --language-server --my-user-provided-option my-value'
+
+
Execute(The project path should be correct for .git directories):
call ale#test#SetFilename('psalm-project/test.php')