Try to fix the tests
This commit is contained in:
parent
143af2b9fd
commit
937138dad4
7 changed files with 30 additions and 2 deletions
|
@ -8,6 +8,8 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c')
|
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c')
|
||||||
|
@ -15,6 +17,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls file):
|
Execute(The project root should be detected correctly using .ccls file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c')
|
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c')
|
||||||
|
@ -22,6 +26,8 @@ Execute(The project root should be detected correctly using .ccls file):
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls-root file):
|
Execute(The project root should be detected correctly using .ccls-root file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.c')
|
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.c')
|
||||||
|
|
|
@ -14,6 +14,8 @@ Execute(The default executable should be correct):
|
||||||
AssertLinter 'clangd', ale#Escape('clangd')
|
AssertLinter 'clangd', ale#Escape('clangd')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly):
|
Execute(The project root should be detected correctly):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('clangd_paths/dummy.c')
|
call ale#test#SetFilename('clangd_paths/dummy.c')
|
||||||
|
|
|
@ -5,6 +5,8 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('cquery_paths/dummy.c')
|
call ale#test#SetFilename('cquery_paths/dummy.c')
|
||||||
|
@ -12,6 +14,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths')
|
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .cquery file):
|
Execute(The project root should be detected correctly using .cquery file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('cquery_paths/with_cquery/dummy.c')
|
call ale#test#SetFilename('cquery_paths/with_cquery/dummy.c')
|
||||||
|
|
|
@ -8,6 +8,8 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.cpp')
|
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.cpp')
|
||||||
|
@ -15,6 +17,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls file):
|
Execute(The project root should be detected correctly using .ccls file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.cpp')
|
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.cpp')
|
||||||
|
@ -22,6 +26,8 @@ Execute(The project root should be detected correctly using .ccls file):
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls-root file):
|
Execute(The project root should be detected correctly using .ccls-root file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.cpp')
|
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.cpp')
|
||||||
|
|
|
@ -8,6 +8,8 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('cquery_paths/dummy.cpp')
|
call ale#test#SetFilename('cquery_paths/dummy.cpp')
|
||||||
|
@ -15,6 +17,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths')
|
AssertLSPProject ale#path#Simplify(g:dir . '/cquery_paths')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .cquery file):
|
Execute(The project root should be detected correctly using .cquery file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('cquery_paths/with_cquery/dummy.cpp')
|
call ale#test#SetFilename('cquery_paths/with_cquery/dummy.cpp')
|
||||||
|
|
|
@ -5,6 +5,8 @@ After:
|
||||||
call ale#assert#TearDownLinterTest()
|
call ale#assert#TearDownLinterTest()
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using compile_commands.json file):
|
Execute(The project root should be detected correctly using compile_commands.json file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.m')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.m')
|
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.m')
|
||||||
|
@ -12,6 +14,8 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls file):
|
Execute(The project root should be detected correctly using .ccls file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.m')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.m')
|
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.m')
|
||||||
|
@ -19,6 +23,8 @@ Execute(The project root should be detected correctly using .ccls file):
|
||||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
||||||
|
|
||||||
Execute(The project root should be detected correctly using .ccls-root file):
|
Execute(The project root should be detected correctly using .ccls-root file):
|
||||||
|
call ale#test#SetFilename(tempname() . '/dummy.m')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
||||||
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.m')
|
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.m')
|
||||||
|
|
|
@ -56,7 +56,7 @@ Execute(The global variable is queried if the buffer-specific has no value):
|
||||||
|
|
||||||
AssertLSPProject '/some/path'
|
AssertLSPProject '/some/path'
|
||||||
|
|
||||||
Execute(The default hook value is acceptable):
|
Execute(No path should be returned by default):
|
||||||
call ale#test#SetFilename('other-file.c')
|
call ale#test#SetFilename(tempname() . '/other-file.c')
|
||||||
|
|
||||||
AssertLSPProject ''
|
AssertLSPProject ''
|
||||||
|
|
Reference in a new issue