You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I migrated one of our projects from junit4 to testNG (version testng-6.8.5). Since I prefer the keep the layout of junitreport I use the junitreport ant task to convert the junitreports/TEST-.xml file generated by testNG into a standard junit report. I noticed that the order in the resulting junit report was wrong, even though I had observed during execution that the tests had been run in the right order. When investigating upon this, I found that test-results.xml listed the tests in the real execution order (which in my case is also the alphabetical order btw), but the corresponding junitreports/TEST-.xml file had the wrong order (random as it seems). I checked lots of documentation, problem reports, etc. but could not find this problem so I create a new ticket (sorry if I overlooked something).
The text was updated successfully, but these errors were encountered:
I close this ticket because I found a solution to my problem: when calling the junitreport ant task I now use a modified style sheet junit-frames.xsl (by setting the styledir attribute of the <report> element). The modification to the stylesheet (in 6 locations) is the addition of <xsl:sort select="@name"/>, e.g.
Today I migrated one of our projects from junit4 to testNG (version testng-6.8.5). Since I prefer the keep the layout of junitreport I use the junitreport ant task to convert the junitreports/TEST-.xml file generated by testNG into a standard junit report. I noticed that the order in the resulting junit report was wrong, even though I had observed during execution that the tests had been run in the right order. When investigating upon this, I found that test-results.xml listed the tests in the real execution order (which in my case is also the alphabetical order btw), but the corresponding junitreports/TEST-.xml file had the wrong order (random as it seems). I checked lots of documentation, problem reports, etc. but could not find this problem so I create a new ticket (sorry if I overlooked something).
The text was updated successfully, but these errors were encountered: