cbeust/testng — pull request #190 by lzoubek (2012-03-13 17:41:45+00:00)
Title: Preserve execution order of test results for IReporters

Hi,

I am using reportng HTMLReporter to generate reports from my tesng tests. I have 1 suite and a few tests in xml. I have preserve-order set to true, so tests run in order as declared in XML file. I was wondering why reportng outputs tests unordered. I found out it does not do anything with ISuite.getResults() map, so it must come from testng unordered.

This may actually fix this issue too http://jira.opensymphony.com/browse/TESTNG-357

I know, we can argue that classes implementing IReporer should be responsible for sorting, but with this one-liner testng behavior would be more consistent = outputs results with same order as the tests were executed.

Thank you for applying!

Libor