Open zzctmac opened 1 year ago
Hi @zzctmac,
Thanks for taking the time to contribute to this project. Before I go ahead and merge it, I'm wondering whether we would need to replicate this pull request to any other factory class.
-- Best, Jose
@jose
Yes, that would be better. But I am sure that only the mutation criterion lacks this function among the default eight criteria.
Thanks. Any chance you could augment the TargetMethodListSystemTest
class with a few more test cases that would exercise this on each of the default criteria?
Ok, good idea. Give me some time
Hello @jose, I have created tests for checking all default criteria.
As shown in the issue, A crash happens when we use the
target_method
functioning with DynaMOSA. This is because: To implementtarget_method_list
, the developers select the target methods' fitness function in Factory class family, such as branch coverage.To fix it, I made a slight change in MutationFactory, following the way of other criterion factories.