Skip to content

Since version 1.48.0: The test run did not record any output #4260

Description

@LorenzoBettini

I reported the problem here microsoft/vscode-java-test#1814

However, the problem is caused by this extension.

When running tests, nothing is really executed with a message in "Test Results"

The test run did not record any output.

This is a Maven project, which has always worked before.
I've also tried with other Maven projects with the same result.

I note an error popping up:

"Cannot find 'org.junit.platform.commons.annotation.Testable' on project build path. JUnit 5 tests can only be run if JUnit 5 is on the build path."

In my POM I have

   <properties>
        <junit-jupiter.version>6.0.0</junit-jupiter.version>
    </properties>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>org.junit</groupId>
				<artifactId>junit-bom</artifactId>
				<version>${junit-jupiter.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
			<groupId>org.junit.jupiter</groupId>
			<artifactId>junit-jupiter-api</artifactId>
			<scope>test</scope>
		</dependency>
    </dependencies>

So I do have JUnit in my build path...

1.49.0 does not solve the problem.

The only solution is to revert to 1.47.0

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions