mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-06-16 03:54:55 +02:00
Properly, actually detect it and it works
This commit is contained in:
parent
0e33cea65d
commit
4a6586ec6f
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ end
|
|||
local function get_pest_cmd()
|
||||
local binary = "pest"
|
||||
|
||||
if vim.fn.filereadable("vendor/bin/pest") then
|
||||
if vim.fn.filereadable("vendor/bin/pest") == 1 then
|
||||
binary = "vendor/bin/pest"
|
||||
end
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ function NeotestAdapter.build_spec(args)
|
|||
|
||||
local command = {}
|
||||
|
||||
if vim.fn.filereadable("vendor/bin/sail") then
|
||||
if vim.fn.filereadable("vendor/bin/sail") == 1 then
|
||||
command = vim.tbl_flatten({
|
||||
"vendor/bin/sail", "bin", "pest",
|
||||
position.name ~= "tests" and ("/var/www/html" .. string.sub(position.path, string.len(vim.loop.cwd()) + 1)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue