Skip to content

Tests cannot be launched #1481

Description

@lucidfrontier45

Added by @jdneo:

check #1481 (comment) for the workaround.

0.37.1 has been released, the problem should be gone with the latest version.


Environment

System : Windows10, WSL2, Debian 11
JDK: OpenJDK 64-Bit Server VM (build 17.0.4+8-Debian-1deb11u1)
Gradle: 7.4.2
VSCode: v1.70.2
redhat.java: v1.10.0
vscjava.vscode-java-test: v0.37.2022083002
vscjava.vscode-java-debug: v0.43.0

Symptom

Test cannot be launched. The notification in the right bottom shows Run Tests: Resolving launch configuration forever

image

How to reproduce

  1. Create an Application project with gradle init .
  2. Open the project folder with VSCode
  3. Open Testing in the side panel.
  4. right click appHasAGreeting() and choose Run Test.

Notes

  1. Running the main of the App class from VSCode works fine.
  2. Running gradle test works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions