Skip to content

Commit

Permalink
Remove quotest from nested tests names
Browse files Browse the repository at this point in the history
  • Loading branch information
sergii4 committed Feb 24, 2024
1 parent 3f701a0 commit c398568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neotest-go/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,14 @@ function adapter.prepare_results(tree, lines, go_root, go_module)
if test_result then
local fname = async.fn.tempname()
fn.writefile(test_result.output, fname)
results[value.id] = {
results[value_id] = {
status = test_result.status,
short = table.concat(test_result.output, ""),
output = fname,
}
local errors = utils.get_errors_from_test(test_result, utils.get_filename_from_id(value.id))
if errors then
results[value.id].errors = errors
results[value_id].errors = errors
end
if test_result.status == test_statuses.fail and file_id then
results[file_id].status = test_statuses.fail
Expand Down
1 change: 1 addition & 0 deletions lua/spec/neotest-go/init_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ describe("prepare_results", function()
end
end
)

async.it("check that all nested results are in three_level_nested_test.go", function()
local tests_folder = vim.loop.cwd() .. "/neotest_go"
local test_file = tests_folder .. "/three_level_nested_test.go"
Expand Down

0 comments on commit c398568

Please sign in to comment.