mirror of
https://github.com/pnx/neotest-phpunit
synced 2026-07-03 11:43:40 +02:00
Change info to debug
This commit is contained in:
parent
05a3a8fe97
commit
e429ba711d
1 changed files with 4 additions and 8 deletions
|
|
@ -2,8 +2,6 @@ local lib = require('neotest.lib')
|
||||||
local logger = require('neotest.logging')
|
local logger = require('neotest.logging')
|
||||||
local utils = require('neotest-pest.utils')
|
local utils = require('neotest-pest.utils')
|
||||||
local config = require('neotest-pest.config')
|
local config = require('neotest-pest.config')
|
||||||
|
|
||||||
local info = logger.info
|
|
||||||
local debug = logger.debug
|
local debug = logger.debug
|
||||||
|
|
||||||
---@class neotest.Adapter
|
---@class neotest.Adapter
|
||||||
|
|
@ -99,13 +97,13 @@ function NeotestAdapter.build_spec(args)
|
||||||
local position = args.tree:data()
|
local position = args.tree:data()
|
||||||
local results_path = config('results_path')
|
local results_path = config('results_path')
|
||||||
|
|
||||||
info("Building spec for:", position)
|
debug("Building spec for:", position)
|
||||||
info("Results path:", results_path)
|
debug("Results path:", results_path)
|
||||||
|
|
||||||
local path = position.path;
|
local path = position.path;
|
||||||
|
|
||||||
if config('sail_enabled') then
|
if config('sail_enabled') then
|
||||||
info("Sail enabled, adjusting path")
|
debug("Sail enabled, adjusting path")
|
||||||
path = "/var/www/html" .. string.sub(position.path, string.len(vim.loop.cwd() or "") + 1)
|
path = "/var/www/html" .. string.sub(position.path, string.len(vim.loop.cwd() or "") + 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -125,7 +123,7 @@ function NeotestAdapter.build_spec(args)
|
||||||
debug("Position type:", position.type)
|
debug("Position type:", position.type)
|
||||||
end
|
end
|
||||||
|
|
||||||
info("Command:", command)
|
debug("Command:", command)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
command = command,
|
command = command,
|
||||||
|
|
@ -166,8 +164,6 @@ end
|
||||||
|
|
||||||
setmetatable(NeotestAdapter, {
|
setmetatable(NeotestAdapter, {
|
||||||
__call = function(_, opts)
|
__call = function(_, opts)
|
||||||
logger.info("Initializing opts")
|
|
||||||
|
|
||||||
config.merge(opts or {})
|
config.merge(opts or {})
|
||||||
|
|
||||||
return NeotestAdapter
|
return NeotestAdapter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue