Open bergel opened 5 years ago
The reason method addAll:
is not called is because the elements that compose the list are RTElement's instances. At the moment when the testCase should be builded it gives error because we use the method storeString
to build the RTElement
's instances as they are scalars of typeInfo.
Calling the method storeString
on classes such as RTElement
or other is very complex because internally this method makes many recursive calls and makes stack overflow. We control this verifying the number of recursive calls and in the case this number is overcome it prints the basic call initialization.
I'm reviewing this to improve it
I tried the following:
It indeed produces the class
GeneratedRTViewTest
with some test methods. All the test methods are green, which is very good.I wanted to know about the fitness evolution, so I tried:
But this gives me:
Which means that the fitness is not increasing.
I wanted to see what's going on, so I run Hapao on it. I put the generated class in a new package called
TTTTT
and run hapao onRoassal-Core
and the new packageTTTTT
.I obtain the following:
The method
addAll:
is not covered by Hapao. This means that the generated test does not call it (I did not verify this). But the code inexampleAligningGroups
actually do calladdAll:
. Something is very weird here. I would guess thataddAll:
should be called by the generated tests