TestNG results (a freestyle job) are not currectly sorted by duration. See the screenshots.
Test results are generated by TestNG 6.5.1.
TestNG results sorted by duration
Code changed in jenkins
User: Nalin Makar
Fixed: JENKINS-15119 - Duration sorting is incorrect in TestNG report
1. Sorting in Jenkins table is alphabetic and that was a problem for how we were formatting duration string. Also, our duration strings were difficult to read. Changed it to be:
a. "> 24hrs", or
This takes care of sorting as well as makes reading/comparing the time duration easier across multiple rows. Added FormatUtilTest as well.
The sorting is now correct. Thanks!