You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extension doesn’t play well with @ParameterizedClass #1824
When using JUnit 5’s @ParameterizedClass, tests are executed but the Java Unit Test extension in VS Code always reports them as "No Result", regardless of whether they pass or fail.
The same tests report results correctly when run via Gradle or in other IDEs.
Environment
VS Code version: 1.107.1
Java Unit Test extension version: 0.43.2
Java version: 21
Build tool: Gradle
JUnit version: 5.14.1
OS: Windows
Reproduction Steps
Create a JUnit 5 test using @ParameterizedClass
Open the project in VS Code
Run the test using the Test Explorer or inline Run Test action
Hi Aylon Carrijo (@ayloncarrijo), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
The VS Code Java Test Runner currently doesn’t support JUnit 5’s @ParameterizedClass (class-level parameterization) yet, so it executes the tests but never reports pass/fail status. There is no workaround built into the extension at the moment. Suggestions:
• Switch to method-level parameterized tests (@ParameterizedTest) or factories, which are fully supported today.
• Follow or file an enhancement request on the Java Test Runner repo to track adding @ParameterizedClass support: https://github.com/microsoft/vscode-java-test/issues
Other references with low confidence:
Other relevant issues
Support for JUnit 5 parameterized tests
Reports old JUnit4-style parameterized tests as “no tests run” even though they execute.
URL: Support for JUnit 5 parameterized tests #107
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
Activity
github-actions commentedon Dec 18, 2025
Hi Aylon Carrijo (@ayloncarrijo), I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
The VS Code Java Test Runner currently doesn’t support JUnit 5’s
@ParameterizedClass(class-level parameterization) yet, so it executes the tests but never reports pass/fail status. There is no workaround built into the extension at the moment. Suggestions:• Switch to method-level parameterized tests (
@ParameterizedTest) or factories, which are fully supported today.• Follow or file an enhancement request on the Java Test Runner repo to track adding
@ParameterizedClasssupport: https://github.com/microsoft/vscode-java-test/issuesOther references with low confidence:
Other relevant issues
Support for JUnit 5 parameterized tests
Reports old JUnit4-style parameterized tests as “no tests run” even though they execute.
URL: Support for JUnit 5 parameterized tests #107
Test Runner for Java ignores @BeforeAll annotations
JUnit5 tests with class-level setup (@BeforeAll) execute but never show results.
URL: Test Runner for Java ignores @BeforeAll annotations on test classes #1756
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!