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

Option to import multiple JUNIT xml files by last modification date

XMLWordPrintable

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

      When collecting multiple JUNIT xml files, the test results are imported from files, by file name order.

      But usually the filename is not necessarily the actual results order, for example:

      1. Run tests and create file: The_first_test_suite.xml
      2. Run more tests and create file: Second_test_suite.xml

       

      When later importing those junit files, "Second_test_suite.xml" will be imported first, and "The_first_test_suite.xml" afterwards.

      Adding option to import the junit files by last modification timestamp (reversed) of the files, can fix this issue.

       

      Note 1:

      The files should be sorted like `ls -ltrc` so that the first to be imported is the file with the oldest modification timestamp,

      and the last to be imported is the file with the newest modification timestamp.

      (Sorting by creation time is not good, since it could have been an empty, or an overridden file, but not the first to include test results).

       

       Note 2:

      This is related, but not the same feature as JENKINS-12575

            gbois Gregory Boissinot
            nmanos Noam Manos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: