microsoft / microsoft/vscode-java-test
Cannot run tests when setting "java.import.maven.disableTestClasspathFlag": "true"
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 340
- Forks
- 173
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 18
Description
Hi, when setting the property "java.import.maven.disableTestClasspathFlag": "true" in .vscode/settings.xml the test extension seems to break.
No tests are discoverable in the Test Explorer and the run icons in the gutter disappear. Tested on multiple systems and on a fresh/clean install of VsCode. This is on Window, both natively and via WSL2.
"java.import.maven.disableTestClasspathFlag": "true" (Not working)
"java.import.maven.disableTestClasspathFlag": "false" (Works as expected)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in a Java project with "java.import.maven.disableTestClasspathFlag" set to true in .vscode/settings.xml, comparing test discovery and gutter run icons with the setting false. Start by tracing the test extension's Maven import and test discovery behavior; done means tests are discoverable and runnable with the flag enabled on the reported Windows and WSL2 setups.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100