mabdi / small-amp

Test Amplification for Pharo
MIT License
5 stars 4 forks source link

Stripping Assertions, empty body #23

Closed mabdi closed 4 years ago

mabdi commented 4 years ago

In the first implementation, SmallAmp was extracting the method calls inside the assertion statements. But at the moment, it completely ignores them in the stripping step.

This is because the number of useless statements was increasing terribly generation by generation.

We miss some tests like STONCStyleCommentsSkipStreamTest>>#testCommentInString because all useful method calls are inside assertion statements. After the stripping, we have an empty body!

Maybe we need to extract in the first generation and strip in the next generations.

mabdi commented 4 years ago

partially solved. It runs strip first, if the body is empty it runs extract.