Skip to content

JUnit test reports don't show tests in execution order #3722

@trancexpress

Description

@trancexpress

See e.g. this report:

https://download.eclipse.org/eclipse/downloads/drops4/I20260318-1800/testresults/html/org.eclipse.jdt.ui.tests_ep440I-unit-macosx-x86_64-java21_macosx.cocoa.x86_64_21.html

The HTML starts with:

        <h3>TestCase AutomatedSuite</h3>
        <table class="details" border="0" cellpadding="5" cellspacing="2" width="95%">
            <tr valign="top">
                <th>Class</th><th>Name</th><th>Status</th><th width="80%">Type</th><th nowrap>Time(s)</th>
            </tr>
            <tr valign="top" class="">
                <td>[{0}]</td><td title="[{0}]">testBug213248_1[{0}]</td><td>Success</td><td></td><td>0.342</td>
            </tr>
            <tr valign="top" class="">
                <td>[{0}]</td><td title="[{0}]">testBug213248_1[{0}]</td><td>Success</td><td></td><td>0.307</td>
            </tr>

Screenshot:

Image

The workspace log shows the actual execution order, the first few tests are:

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:47.590
!MESSAGE AutomatedSuite STARTING

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:47.616
!MESSAGE JUnit Jupiter STARTING

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:47.624
!MESSAGE VisitorTest STARTING

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:49.161
!MESSAGE simpleTest() STARTING
coll.add(var)
System.out.println(var)
System.err.println(var)
System.out.println(arr)

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:49.188
!MESSAGE simpleTest() DONE: SUCCESSFUL

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:49.189
!MESSAGE simpleTest2() STARTING
coll.add(var)

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:49.195
!MESSAGE simpleTest2() DONE: SUCCESSFUL

!ENTRY org.eclipse.jdt.ui.tests 1 0 2026-03-18 22:08:49.197
!MESSAGE simpleTest3() STARTING

Not all test bundles show log test start/end, so in some cases all we have is the JUnit report. When multiple failures seem connected, we want to know what the test order is, but we can't for such test bundles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions