Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork78
Open
Description
Did you check docs and existing issues?
- I have read all the plugin docs
- I have searched the existing issues
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.11.4
Operating system/version
MacOS 15.6.1 (intel)
Describe the bug
Tests that are reported as "Errored" by maven/junit show as passing in:JavaTestViewLastReport.
- Example test
publicclassAppTest {@TestpublicvoidshouldFailFromRuntimeException() {thrownewRuntimeException("exception!"); }}
- Maven result (
mvn -Dtest='AppTest#shouldFailFromRuntimeException' clean test)
[INFO] Results:[INFO] [ERROR] Errors: [ERROR] AppTest.shouldFailFromRuntimeException:21 Runtime exception![INFO] [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0:JavaTestViewLastReport

Steps To Reproduce
- Download and unzipissue_repro.zip. It contains a minimal
init.luaand a maven project needed to reproduce the issue. - run
nvim -u init.luato install nvim-java + it's dependencies. - close neovim
- run
nvim -u init.lua app/src/test/java/com/gracepetryk/example/AppTest.java - Navigate to
shouldFailFromRuntimeExceptionand run:JavaTestRunCurrentMethodor:JavaTestRunCurrentClass
Expected Behavior
Test should show as a failure, with exception + stack trace info.