fallback to package test, argument and notify

This commit is contained in:
ray-x 2022-01-11 11:57:46 +11:00
parent 80441fc003
commit bd25255d03

View File

@ -221,8 +221,8 @@ M.test_file = function(...)
local tests = vim.fn.systemlist(cmd)[1]
utils.log(cmd, tests)
if empty(tests) then
print("no test found fallback to package test")
M.test_package(args)
vim.notify("no test found fallback to package test", vim.lsp.log_levels.DEBUG)
M.test_package(...)
return
end