-
Improvement
-
Resolution: Unresolved
-
Major
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:
- Run tests and create file: The_first_test_suite.xml
- 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