1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Check for both a docker-compose file and the sail executable

This commit is contained in:
V13Axel 2024-03-04 09:50:01 -05:00
parent 50646909ae
commit 25501800b5

View file

@ -48,7 +48,7 @@ end
function M.env.results_path()
if M('sail_enabled') then
return "storage/app/" .. os.date("junit-%Y%m%d-%H%M%S")
return "storage/app/" .. os.date("pest-%Y%m%d-%H%M%S")
end
return async.fn.tempname()
@ -59,7 +59,7 @@ function M.sail_error()
end
function M.sail_available()
if vim.fn.filereadable(M('sail_executable')) == 1 then
if (vim.fn.filereadable(M('sail_executable')) == 1) and (vim.fn.filereadable("docker-compose.yml") == 1) then
M._sail_enabled = true
return true
end