Some tests inside static class won't run after click "Run All Tests" button

Open
#1,283 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Reproduce the issue using the junit5-jupiter-starter-maven sample from the linked testrunner branch in VS Code. Start with the Test Explorer "Run All Tests" entry point and compare discovery of tests inside static classes with the reported result. Done means all tests in the static class run when "Run All Tests" is selected.

Written by the indexing model from the issue text.

Description

ai-triaged bug help wanted high-priority investigating junit maven test-execution

Environment:

OS: Windows
JDK: 11
Java Test Runner Extension: 0.31.2

Repro steps:

1.git clone : https://github.com/ZhengJun003/junit5-samples/tree/testrunner
2.Open junit5-jupiter-starter-maven with VSCode
3.Click "Run All Tests" from Test Explorer

Result:
Tests inside static class don't run.
image

Dominant language
TypeScript
Stars
340
Forks
173
Avg merge
1d 2h
Merged PRs (30d)
17

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.

More from microsoft/vscode-java-test

All issues in microsoft/vscode-java-test

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.