You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: assertion failed! in result-parser.lua when running tests #474
I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.12.0-dev
Operating system/version
Ubuntu 25.10
Describe the bug
When running a test using nvim-java's test runner, I get an assertion error in the result parser:
vim.schedule callback: ...lugged/nvim-java/lua/java-test/results/result-parser.lua:123: assertion failed!
stack traceback:
[C]: in function 'assert'
...lugged/nvim-java/lua/java-test/results/result-parser.lua:123: in function <...lugged/nvim-java/lua/java-test/results/result-parser.lua:120>
...lugged/nvim-java/lua/java-test/results/result-parser.lua:58: in function 'parse'
...i/.vim/plugged/nvim-java/lua/java-test/reports/junit.
The error occurs at line 123 in result-parser.lua:
function TestParser:parse_test_failed(data, line_iter)
local test_id = tonumber(data[1])
local node = self:find_result_node(test_id)
assert(node) -- <-- fails here
It appears that find_result_node returns nil for a test ID that was reported in the test output but wasn't registered during test discovery.
Steps To Reproduce
Open a Java test file
Run :JavaTestRunCurrentMethod (or equivalent test command)
Observe the assertion error
Expected behavior:
Expected Behavior
The test should run and display results without crashing.
Activity