Skip to content

Commit

Permalink
Check for both a docker-compose file and the sail executable
Browse files Browse the repository at this point in the history
  • Loading branch information
V13Axel committed Mar 4, 2024
1 parent 5064690 commit 2550180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-pest/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit 2550180

Please sign in to comment.