microsoft / microsoft/vscode-java-test

Can't run or debug JUnit 5 from secondary class

Open
#859 18 comments 1 reaction 0 assignees View on GitHub

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:
  1. Open the JUnit5 project in VSCode: https://github.com/ZhengJun003/junit5-samples/tree/testrunner
  2. Run MyFastTestIT and TestTemplateI in the test explorer
Result:

image

image


Added by @jdneo
❗️Solution for those people who cannot run JUnit 5 from the Invisible project(dependency managed in lib folder)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.