Skip to content

JUnit 5 @Suite classes do not update status icons in Test Explorer #1828

@Biyakuga

Description

@Biyakuga

Description

When running a JUnit 5 Test Suite (using @suite and @SelectPackages), the tests execute successfully, but the VS Code Test Explorer UI and Test Results panel do not update to show the "Passed" state (green checkmarks). The Suite class often remains in a "running" or "unknown" state visually or does not expand to show the tests being run, even though the Output console confirms execution.

Reproduce

Steps to reproduce the behavior:

  1. Create a simple JUnit 5 project with junit-platform-suite.
  2. Create a Suite class:
    @Suite @SelectPackages("com.example.tests") public class MyTestSuite { }
  3. Click the "Run Test" (Play icon) next to the MyTestSuite class in the Test Explorer.
  4. Observe that the tests run (output is generated), but the UI does not show checkmarks for the Suite.

Expected behavior

The Test Explorer should visually reflect that the Suite and its contained tests have passed (green checkmarks), similar to how individual @test classes behave.

Current behavior

  • The tests execute (verified via console output).
  • The Test Explorer sidebar does not show checkmarks for the Suite.
  • The Output tab ("Test Output") shows raw Eclipse protocol messages (e.g., %TSTTREE, %TESTS, %TESTE) instead of a clean summary or UI update.

Image for visualization:

As you can see in the Test Results Panel" no checkmark ✅ icon or fail icon only grey arrow the same behavior happens in the "Test Explorer Sidebar"
Image

Sample Output (Raw Protocol seen in Output tab)
%TSTTREE54,com.example.MyTest,true,2,false,3,MyTest,,[engine:junit-jupiter]/[class:com.example.MyTest] %TESTS 61,shouldDoSomething(com.example.MyTest) %TESTE 61,shouldDoSomething(com.example.MyTest)

Environment

VS Code Version 1.108.1
Windows 11 latest stable version
Java official Microsoft Pack latest version
JUnit Jupiter (Aggregator) version 5.14.2
Junit Platform Suite (Aggregator) version 1.14.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions