From 100950f227ebcc8c5dbbfef4f17ce73956937b8e Mon Sep 17 00:00:00 2001 From: Smirnov Oleksandr Date: Sat, 15 Jun 2024 12:15:05 +0300 Subject: [PATCH] feat(gotests): add logger --- lua/gopher/gotests.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/gopher/gotests.lua b/lua/gopher/gotests.lua index 3d96a05..da4753d 100644 --- a/lua/gopher/gotests.lua +++ b/lua/gopher/gotests.lua @@ -43,6 +43,7 @@ local c = require "gopher.config" local ts_utils = require "gopher._utils.ts" local r = require "gopher._utils.runner" local u = require "gopher._utils" +local log = require "gopher._utils.log" local gotests = {} ---@param args table @@ -65,6 +66,8 @@ local function add_test(args) table.insert(args, "-w") table.insert(args, vim.fn.expand "%") + log.debug("generating tests with args: ", args) + return r.sync(c.commands.gotests, { args = args, on_exit = function(data, status)