EvoSuite / evosuite

EvoSuite - automated generation of JUnit test suites for Java classes
http://www.evosuite.org
GNU Lesser General Public License v3.0
824 stars 341 forks source link

cannot generate correct assertion against getter and setter #469

Open jaksonlin opened 5 months ago

jaksonlin commented 5 months ago

Context

generated unit test for model with getter and setter.

expected behavior: generated assertion should assert the correct getter's return value for the setter

actual behavior: assertion is not always against the target setter's getter, it seems to be some random pick, but seeing the code i am not sure. it would be nice if someone can instruct on where is the point to get started with.

Juvemanu commented 2 months ago

Without any example, it's difficult to understand your troubles. There is an open issue that reports something similar to what you are complaining about. #464