Skip to content

Add Java test gutter debugging - #332

Open
fwrq41251 wants to merge 1 commit into
zed-extensions:mainfrom
fwrq41251:feat/java-test-debug-locator
Open

fwrq41251 wants to merge 1 commit into
zed-extensions:mainfrom
fwrq41251:feat/java-test-debug-locator

Conversation

@fwrq41251

@fwrq41251 fwrq41251 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Refs #329. This follows #330, which added gutter debugging for Java main methods.

Changes

  • Add a Debug action for individual Java test methods and test classes, including nested classes, with JDTLS.
  • Generate a testTarget from the selected gutter task and defer test discovery and compilation until launch. The pinned Microsoft Java Test Runner is downloaded and loaded into JDTLS on demand.
  • Close the test result socket when the DAP connection ends. If the editor never connects, close both local listeners after 10 seconds.

Verification

  • 219 Rust tests passed. Formatting, Clippy, and release builds for the WASM extension and native Java proxy passed.
  • In a protocol test with JDTLS, test discovery became available after loading the bundles into the running server. DAP initialization succeeded through the relay, and both local ports closed after disconnect.
  • The Zed UI gutter-to-breakpoint and Stop flow remains to be verified end to end.

@cla-bot cla-bot Bot added the cla-signed label Nov 18, 2026
@fwrq41251
fwrq41251 force-pushed the feat/java-test-debug-locator branch from 1e5f341 to 18674dc Compare November 18, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant