Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12575

Add option to sort JUNIT tests by date (currently ordered alphabetically)

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • junit-plugin

      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.

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

          Removed dependency to xUnit plugin.
          xUnit plugin delegates to the JUnit core.
          Therefore, the issue is only on junit component.

          Gregory Boissinot added a comment - Removed dependency to xUnit plugin. xUnit plugin delegates to the JUnit core. Therefore, the issue is only on junit component.

          Eyal Edri added a comment -

          correction.

          Failed tests order also is not ordered by 'date' but but 'age' which i assume means "for how long this test has been failing...".
          Is there an option to control the way the "failed tests list" is sorted?

          Eyal Edri added a comment - correction. Failed tests order also is not ordered by 'date' but but 'age' which i assume means "for how long this test has been failing...". Is there an option to control the way the "failed tests list" is sorted?

          Alex Okrushko added a comment -

          Indeed alphabetical order is very frustrating (refer to test_results.png), specially where tests are run in scenarios (in brackets)

          Alex Okrushko added a comment - Indeed alphabetical order is very frustrating (refer to test_results.png), specially where tests are run in scenarios (in brackets)

          Bart Vanhaute added a comment -

          For complex tests that depend on external resources, it is sometimes the case that a certain test failure will make the rest of the tests also fail. When tests are sorted chronologically, such situation is much more apparent.

          Bart Vanhaute added a comment - For complex tests that depend on external resources, it is sometimes the case that a certain test failure will make the rest of the tests also fail. When tests are sorted chronologically, such situation is much more apparent.

          Falko Modler added a comment -

          This problem is still present.

          Falko Modler added a comment - This problem is still present.

            gbois Gregory Boissinot
            eedri Eyal Edri
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: