Skip to content

Testing view refreshes every time I run tests #1787

@TimKingtonFC

Description

@TimKingtonFC

I have a gradle-based Java project, and it has been working fine. Recently it started refreshing the testing view every time a test run completes. It takes five or so seconds to load. It briefly shows the message that there are no tests, then the subtree containing the test I just ran, and then the entire test tree. It's very annoying :)

I saw it on the current version, and I also tried pre-release 0.43.2025040304 and saw it there too. This is vscode 1.103.1.

build.gradle:

/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java application project to get you started.
 * For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.8/userguide/building_java_projects.html in the Gradle documentation.
 */

plugins {
    // Apply the application plugin to add support for building a CLI application in Java.
    id 'application'
    id 'java'
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenLocal()
    mavenCentral()
}

dependencies {
    implementation 'com.microsoft.java:com.microsoft.java.debug.core:0.53.1'
    // Use JUnit Jupiter for testing.
	testImplementation('org.junit.jupiter:junit-jupiter:5.6.0')
    testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

}

// Apply a specific Java toolchain to ease working on different environments.
java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(21)
    }
}

application {
    // Define the main class for the application.
    mainClass = 'gradle.test.App'
}

tasks.named('test') {
    // Use JUnit Platform for unit tests.
    useJUnitPlatform()
	testLogging {
		events "passed", "skipped", "failed"
	}
}

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