From 25501800b5b8da578a03bb178a007d6f8abe7ae3 Mon Sep 17 00:00:00 2001 From: V13Axel Date: Mon, 4 Mar 2024 09:50:01 -0500 Subject: [PATCH] Check for both a docker-compose file and the sail executable --- lua/neotest-pest/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/neotest-pest/config.lua b/lua/neotest-pest/config.lua index 9e33d2e..66a5b1b 100644 --- a/lua/neotest-pest/config.lua +++ b/lua/neotest-pest/config.lua @@ -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