jenkinsci / jenkinsci/junit-plugin

[JENKINS-12575] Add option to sort JUNIT tests by date (currently ordered alphabetically)

Open
#916 5 comments 0 reactions 0 assignees View on GitHub
component:junit-plugin enhancement imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
87
Forks
351
Avg merge
1d 19h
Merged PRs (30d)
2

Description

when seeing JUNIT test results on jenkins (output from a normal mvn job or a result of xUnit plugin), you see passed tests in an alphabetically order. (see attached image).

on some scenarios it is important to see the results in the order they were run (sorted by date), similar to the 'Failed Tests List' shown if there were failed tests.

it it possible to add an option (checkbox) to choose how the test results will be sorted in the report? (alphabetically or chronologically)

thanks.

---
Originally reported by eedri, imported from: Add option to sort JUNIT tests by date (currently ordered alphabetically)


  • assignee: gbois
  • status: Open
  • priority: Major
  • component(s): junit-plugin
  • label(s): junit
  • resolution: Unresolved
  • votes: 7
  • watchers: 7
  • imported: 2025-11-26

Raw content of original issue

when seeing JUNIT test results on jenkins (output from a normal mvn job or a result of xUnit plugin), you see passed tests in an alphabetically order. (see attached image).

on some scenarios it is important to see the results in the order they were run (sorted by date), similar to the 'Failed Tests List' shown if there were failed tests.

it it possible to add an option (checkbox) to choose how the test results will be sorted in the report? (alphabetically or chronologically)

thanks.

2 attachments

- [junit-results.png](https://issues.jenkins.io/secure/attachment/21459/junit-results.png)
> ![junit-results.png](https://issues.jenkins.io/secure/attachment/21459/junit-results.png)
- [test_results.png](https://issues.jenkins.io/secure/attachment/22739/test_results.png)
> ![test_results.png](https://issues.jenkins.io/secure/attachment/22739/test_results.png)

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the junit-plugin renders JUnit results from normal Maven jobs and xUnit plugin output, using the attached junit-results.png and test_results.png as references. Determine where the report's current alphabetical ordering is applied and verify the requested checkbox can switch between alphabetical and chronological ordering in both report scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.