Before: call ale#assert#SetUpLinterTest('yara', 'yls') After: if isdirectory(g:dir . '/.git') call delete(g:dir . '/.git', 'd') endif call ale#assert#TearDownLinterTest() Execute(The default executable path should be correct): AssertLinter 'yls', ale#Escape('yls') . ' -v' Execute(The project root should be detected correctly): if !isdirectory(g:dir . '/.git') call mkdir(g:dir . '/.git') endif AssertLSPProject g:dir