microsoft / microsoft/vscode-java-test

Inherited tests not supported

Open
#718 10 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged bug investigating junit low-priority test-discovery
Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 19h
Merged PRs (30d)
18

Description

Codelens appears for the abstract test class even though it cannot be run directly (IntelliJ redirects you to the classes that inherit from the abstract class instead ...)

Codelens does not appear on the classes that inherit from the abstract test class

Sidebar only runs tests in abstract class resulting in InstantiationException because it's abstract.

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 reproducing the behavior with an abstract test class and one or more inheriting test classes in the VS Code Java test extension. Trace how Codelens entries and sidebar test execution are discovered and launched. Done means inherited classes expose runnable Codelens entries, while the abstract class is not offered as a directly runnable test.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
developer-experience, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.