Open christianhujer opened 4 years ago
I will work on it and raise a PR
Just remember to test it thoroughly. What possible in unit (or unit-like) tests.
@szpak Yep will do that. Will look at all existing tests and add required tests accordingly 👍 Will ask if I have any questions
@szpak From what I found out, there is no support for excluding mutators in PIT project. What do you think should be the next step?
I didn't need it before, but it seems there is no easy way to exclude mutators (instead of provide just the list of selected mutators to use). It could be implemented in the Gradle plugin alone, but most likely it would be good to have it available in pit-core. Therefore, I propose to report that suggestion in the PIT issue tracker to see what Henry thinks about that.
Apologies for late reply. I will do that.
Any update here? I wanted to change mutators group to ALL with pitest gradle plugin but I cannot find any property to do that in here. Can you help on this? Thank you
@kamesh95 I haven't seen a related issue in the PIT issue tracker. You might want to create one.
@szpak I have raised the feature request in PIT issue tracker.
@npathai Could you check it with PIT 1.7.3?
pitest {
pitestVersion = '1.7.3'
mutators = ['ALL', '-UOI', ...]
...
}
@szpak Sure let me do that. I will raise PR when ready.
Feature Request:
I would like to be able to specify the mutators like this:
or, if that is not possible, with something equivalent, like this:
Use case: instead of having a long list of all mutators to run, be able to specify a large set of mutators, like
'ALL'
, and then just exclude some from the list, like['UOI']
, when they produce too many false positives.