microsoft / microsoft/vscode-java-test
Can't run or debug JUnit 5 from secondary class
Open
Nobody has claimed this yet.
ai-triaged
bug
junit
needs-reproduction
test-execution
upstream
- Dominant language
- TypeScript
- Stars
- 340
- Forks
- 173
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 18
Description
Environment:
OS: Windows
JDK: 8/12
Java Extensions:
- Language Support for Java(TM) by Red Hat: 0.52.0
- Debugger for Java: 0.23.0
- Java Test Runner: 0.21.0
Steps to reproduce:
- Open the JUnit5 project in VSCode: https://github.com/ZhengJun003/junit5-samples/tree/testrunner
- Run
MyFastTestITandTestTemplateIin the test explorer
Result:


Added by @jdneo
❗️Solution for those people who cannot run JUnit 5 from the Invisible project(dependency managed in lib folder)
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
Start by reviewing the linked solution comment, then reproduce the failure with the linked junit5-samples project in VS Code by running MyFastTestIT and TestTemplateI from the test explorer. Done means both secondary test classes can run and be debugged successfully with the reported Java extensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, 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
- 30/100