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:
parent
50646909ae
commit
25501800b5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue