Open donovani opened 7 years ago
@juherr Thanks for taking the time on this. I reduced my code down today and added it to the initial post. This is the simplest I could bring it down to while still encountering the error. All of the test classes are similar - each having 3 simple tests to help track how many tests run/which got omitted.
The TestFactory also produces 30 tests (as written in the DataProvider method) because the bug seems to disappear at values less than that. I think that it may be some kind of memory limitation, or a problem when creating a graph of the tests at startup. If this doesn't work on your machine, I'd recommend cranking up the number of tests TestFactory creates to a significantly larger number before stating it doesn't work.
Thanks again! I appreciate the speed you and Cedric respond to issues with. 😃
I can confirm I can still reproduce the issue with TestNG 6.11
@apetkova Ok, thanks. We will try to have a look on it.
@krmahadevan If you have some free time :)
TestNG Version
Encountered in v6.9.10
Expected behavior
Running XML test file containing
group-by-instances="true"
executes all listed tests, but reordered based on the individual instances.Actual behavior
Tests with group-by-instances set to true will be reordered as expected, but some tests do not get executed. In the framework this was discovered, isolating the exact reason is challenging. The only discovery thus far is that the issue is resolved upon removing group-by-instances. The impact there is substantial. 3 classes never even get run, and those that do result in some test methods missing. I'll be looking into it further.
Is the issue reproductible on runner?
Yes. Experienced on the Eclipse plugin and while running through Maven builds.
Test case sample
testng.xml
StandaloneTestA.java
StandaloneTestB.java
TestFactory.java
PositiveTest.java
NegativeTest.java