summaryrefslogtreecommitdiff
path: root/test/handler/test_mcsc_handler.vader
diff options
context:
space:
mode:
authorhernot <christoph@out-world.com>2019-07-02 09:18:17 +0200
committerw0rp <w0rp@users.noreply.github.com>2019-07-02 08:18:17 +0100
commit46ab7c590404d60567fe57390607c3dc51933c0e (patch)
tree3261827c44d9a7d8fbe8b2154400b2959c0ff5fa /test/handler/test_mcsc_handler.vader
parent870058689063b4ba69851cb3f7e71726d2263cf0 (diff)
downloadale-46ab7c590404d60567fe57390607c3dc51933c0e.zip
Support csc, update mcsc (#2586)
* Added a new csc linter for C# code. * More output is now handled for mcsc.
Diffstat (limited to 'test/handler/test_mcsc_handler.vader')
-rw-r--r--test/handler/test_mcsc_handler.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/handler/test_mcsc_handler.vader b/test/handler/test_mcsc_handler.vader
index 8ae47357..c04f7d27 100644
--- a/test/handler/test_mcsc_handler.vader
+++ b/test/handler/test_mcsc_handler.vader
@@ -67,3 +67,22 @@ Execute(The mcs handler should handle cannot find symbol errors):
\ 'Test.cs(10,12): warning CS0123: some warning',
\ 'Compilation failed: 2 error(s), 1 warnings',
\ ])
+
+Execute(The mcsc handler should handle non file specific compiler errors without reporting overal status report as error):
+ let g:ale_cs_mcsc_source = '/home/foo/project/bar'
+
+ AssertEqual
+ \ [
+ \ {
+ \ 'lnum': -1,
+ \ 'col' : -1,
+ \ 'text': 'No files to compile were specified',
+ \ 'code': 'CS2008',
+ \ 'type': 'E',
+ \ 'filename': '<mcs>',
+ \ },
+ \ ],
+ \ ale_linters#cs#mcsc#Handle(bufnr(''), [
+ \ 'error CS2008: No files to compile were specified',
+ \ 'Compilation failed: 1 error(s), 0 warnings',
+ \ ])