Skip to content

Commit

Permalink
Fix json output
Browse files Browse the repository at this point in the history
  • Loading branch information
sergii4 committed Feb 24, 2024
1 parent 627a1cc commit ab848cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-go/output.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function M.marshal_gotest_output(lines)
-- if a new file and line number is present in the current line, use this info from now on
-- begin collection log data with everything after the file:linenumber
local new_test_file, new_line_number = utils.get_test_file_info(parsed.Output)
testfile, linenumber = new_test_file, new_line_number
if new_test_file and new_line_number then
testfile = new_test_file
linenumber = new_line_number

if not tests[testname].file_output[testfile] then
tests[testname].file_output[testfile] = {}
end
Expand Down

0 comments on commit ab848cf

Please sign in to comment.