Skip to content

Commit

Permalink
fix: handle junit4 test results
Browse files Browse the repository at this point in the history
  • Loading branch information
atm1020 committed Dec 2, 2024
1 parent 95cf827 commit 544f83b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neotest-jdtls/neotest/impl/results.lua
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ function M.results(spec, _, tree)
for _, item in ipairs(report) do
if item.children then
group_and_map_test_results(test_result_lookup, item)
elseif not item.is_suite then
-- The junit 4 test dosen't have children parameter
local key = get_test_key_from_junit_result(item.test_name)
test_result_lookup[key] = { map_to_neotest_result_item(item) }
end
end

Expand Down

0 comments on commit 544f83b

Please sign in to comment.