Conversation
669891d to
c95d667
Compare
|
Root Cause Analysis |
|
OpenFile→ findTestTypesAndMethods() User run test cases → mapTestItemsByKind() from dataCache read testKind=JUnit5 |
There was a problem hiding this comment.
Pull request overview
Fixes issue #1837 where JUnit 6 projects are incorrectly handled as JUnit 5 (leading to misleading “JUnit 5 … build path” errors), by improving JUnit 6 kind selection and discovery behavior.
Changes:
- Updated bundled JUnit 5/Platform jar versions used by the extension.
- Improved test kind resolution to correctly label items as JUnit 6 in cases where JUnit 5 and JUnit 6 annotations overlap.
- Added a JDT accessibility-check fallback to avoid incorrectly rejecting valid JUnit 6
@Nestedtest classes.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| package.json | Updates the extension’s bundled JUnit jars used on the server side. |
| java-extension/com.microsoft.java.test.plugin/src/main/java/com/microsoft/java/test/plugin/util/TestSearchUtils.java | Adjusts test discovery/kind assignment and accessibility checks for JUnit 6 compatibility. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fix issue #1837