mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-17 04:00:03 +02:00
Further simplification
This commit is contained in:
parent
9f7192cee5
commit
05a3a8fe97
4 changed files with 61 additions and 46 deletions
|
|
@ -34,6 +34,14 @@ function M.env.sail_enabled()
|
|||
return M.sail_available()
|
||||
end
|
||||
|
||||
function M.env.pest_cmd()
|
||||
if M('sail_enabled') then
|
||||
return { "vendor/bin/sail", "bin", "pest" }
|
||||
end
|
||||
|
||||
return { "vendor/bin/pest" }
|
||||
end
|
||||
|
||||
function M.env.results_path()
|
||||
if M('sail_enabled') then
|
||||
return "storage/app/" .. os.date("junit-%Y%m%d-%H%M%S")
|
||||
|
|
@ -48,6 +56,7 @@ end
|
|||
|
||||
function M.sail_available()
|
||||
if vim.fn.filereadable(M('sail_executable')) == 1 then
|
||||
M._sail_enabled = true
|
||||
return true
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue