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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      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.

        Attachments

        1. junit-results.png
          60 kB
          Eyal Edri
        2. test_results.png
          79 kB
          Alex Okrushko

          Activity

          Hide
          gbois 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.

          Show
          gbois 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.
          Hide
          eedri 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?

          Show
          eedri 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?
          Hide
          alex_okrushko 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)

          Show
          alex_okrushko 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)
          Hide
          bartvh 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.

          Show
          bartvh 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.
          Hide
          famod Falko Modler added a comment -

          This problem is still present.

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

            People

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

              Dates

              Created:
              Updated: