Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit Jupiter DynamicContainer and DynamicTest launching from the test side bar does not work #1420

Open
NickJAllen opened this issue Dec 16, 2023 · 0 comments

Comments

@NickJAllen
Copy link

When using the DynamicContainer and DynamicTest classes from JUnit 5 the tests cannot be properly launched from the test runner. The hierarchy of tests is displayed correctly but clicking on one for the run or debug buttons for an individual test reports an error and the test is not launched. Running all the tests from the root node does work however.

Environment
  • Operating System: Linux
  • JDK version:
  • Visual Studio Code version: 1.85.1
  • Java extension version: 1.25.1
  • Java Debugger extension version: 0.55.0 - 2023-11-01
Steps To Reproduce
  1. Extract attached zip file which is a vanilla gradle project with junit dynamic tests
  2. In the test side bar panel try to launch one of the nested tests

[attach a sample project reproducing the error]
attach logs

Current Result

Tests can only be launched by launching either the root test container and some of the nested containers. Any test under the hierarchy can't be llaunched individualy though.

The error message is: The input type of the launch configuration does not exist

Expected Result

The individual test that you launch should launch

Additional Informations

[jun
java-log-file.txt
it-bug.zip](https://github.com/microsoft/vscode-java-debug/files/13692433/junit-bug.zip)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant