Closed vadipp closed 13 years ago
I just fixed this in the beta, can you try and report back? http://testng.org/beta
Note: you have to use <suite group-by-instances="true"> for this to work (I'm considering deprecating this option and making it true all the time, but it's the case right now).
Hello, Cedric!
Yes, it works! Now, finally, we are ready to start implementing nice data-driven testing in our project with TestNG :)
The only thing I have to ask is that you either add the new attribute to the DTD, or make the new behaviour the default. Please close this bug when you decide what to do (just not to forget).
Big thanks for your hard work!
I'm running this code on TestNG 6.1.2 beta:
I'm getting this result:
I would better expect to get them in groups according to data rows I provided:
The order of groups (i.e. One, Two and Three) is not so significant, but the grouping itself would lead to better readability of results. Also, if the tests do some heavy-duty tasks in BeforeClass methods (e.g. create big objects), the ordering which I propose will guarantee that no more that one heavy-duty object persists at a given time (they will be deleted in corresponding AfterClass methods).