Skip to content

Test Runner for Java doesn't recognize tests #1782

Description

@snjeza

The related issues:

If a maven project has the <m2e.disableTestClasspathFlag>true</m2e.disableTestClasspathFlag> property, m2e won't set the test flag on test classpath entries.
In this case, Test Runner for Java won't recognize tests

Steps to reproduce:

  • set the VS Code property
"java.import.maven.disableTestClasspathFlag": true,
  • import spring-petclinic as a Maven project
  • open the Testing Explorer
    You will see that there isn't any test.

The solution: If java.import.maven.disableTestClasspathFlag set to true, Test Runner for Java will need to search for tests in all source folders.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions