feat(gotests): add logger
This commit is contained in:
parent
161b53d498
commit
100950f227
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ local c = require "gopher.config"
|
||||||
local ts_utils = require "gopher._utils.ts"
|
local ts_utils = require "gopher._utils.ts"
|
||||||
local r = require "gopher._utils.runner"
|
local r = require "gopher._utils.runner"
|
||||||
local u = require "gopher._utils"
|
local u = require "gopher._utils"
|
||||||
|
local log = require "gopher._utils.log"
|
||||||
local gotests = {}
|
local gotests = {}
|
||||||
|
|
||||||
---@param args table
|
---@param args table
|
||||||
|
|
@ -65,6 +66,8 @@ local function add_test(args)
|
||||||
table.insert(args, "-w")
|
table.insert(args, "-w")
|
||||||
table.insert(args, vim.fn.expand "%")
|
table.insert(args, vim.fn.expand "%")
|
||||||
|
|
||||||
|
log.debug("generating tests with args: ", args)
|
||||||
|
|
||||||
return r.sync(c.commands.gotests, {
|
return r.sync(c.commands.gotests, {
|
||||||
args = args,
|
args = args,
|
||||||
on_exit = function(data, status)
|
on_exit = function(data, status)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue