summaryrefslogtreecommitdiff
path: root/test/handler/test_scalastyle_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-10-15 00:20:43 +0100
committerw0rp <devw0rp@gmail.com>2017-10-15 00:20:43 +0100
commit90d4fb139c1c6490c276d7c74b2616cb059e7d01 (patch)
treea3a2930b0fda640d4b760bdd5480e477a4c00b36 /test/handler/test_scalastyle_handler.vader
parent515dcdef2941db96d4ca791395a55a0e94169e65 (diff)
downloadale-90d4fb139c1c6490c276d7c74b2616cb059e7d01.zip
#977 Complain about the lack of configuration files for scalastyle in such a way that users will be directed towards getting it to work
Diffstat (limited to 'test/handler/test_scalastyle_handler.vader')
-rw-r--r--test/handler/test_scalastyle_handler.vader21
1 files changed, 18 insertions, 3 deletions
diff --git a/test/handler/test_scalastyle_handler.vader b/test/handler/test_scalastyle_handler.vader
index b03d18e7..32da79c0 100644
--- a/test/handler/test_scalastyle_handler.vader
+++ b/test/handler/test_scalastyle_handler.vader
@@ -1,6 +1,10 @@
-Execute(The scalastyle handler should parse lines correctly):
+Before:
runtime! ale_linters/scala/scalastyle.vim
+After:
+ call ale#linter#Reset()
+
+Execute(The scalastyle handler should parse lines correctly):
AssertEqual
\ [
\ {
@@ -34,5 +38,16 @@ Execute(The scalastyle handler should parse lines correctly):
\ 'Finished in 934 ms',
\ ])
-After:
- call ale#linter#Reset()
+Execute(The scalastyle linter should complain when there is no configuration file):
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': 1,
+ \ 'text': '(See :help ale-scala-scalastyle) No scalastyle configuration file was found.',
+ \ },
+ \ ],
+ \ ale_linters#scala#scalastyle#Handle(347, [
+ \ 'scalastyle 1.0.0',
+ \ 'Usage: scalastyle [options] <source directory>',
+ \ ' -c, --config FILE configuration file (required)',
+ \ ])