mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-21 18:42:13 +08:00
Add C/C++ tests for cquery LSP linter
This commit is contained in:
@@ -7,6 +7,20 @@ Before:
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('cquery_paths/with_compile_commands_json/dummy.cpp')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths/with_compile_commands_json')
|
||||
|
||||
Execute(The project root should be detected correctly using .cquery file):
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('cquery_paths/with_cquery/dummy.cpp')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths/with_cquery')
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
AssertLinter 'cquery', ale#Escape('cquery')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user