gremlins
gremlins copied to clipboard
Exclude requested packages/dirs from being mutated
This feature will allow a user to exclude some directories from being mutated.
We can pass a flag with a list of dirs to be excluded by gremlins unleash
gremlin unleash --exclude-dirs="./dir1,./dir2,./dir3"
Config file:
unleash:
exclude-dirs:
- "./dir1"
- "./dir2"
- "./dir3"
What do you think about that?
I'm not sure if it is better to exclude dirs or packages... Also, we have to be careful on how it plays with the recently added --coverpkg flag.
Regarding this feature, I was thinking of something more flexible.
To exclude specific mutators for paths:
excludes:
- path: <path regex>
mutators:
- mutator1
- mutator2
In this case we can have a list of specific path or regex matching paths. For each, we can have a specific list of mutators to match (if not specified will be all mutators).
Same concept can be applied to packages:
excludes:
- package: <package regex>
mutators:
- mutator1
- mutator2
@k3rn31 Sounds good to me :smile:
Very expecting feature!
Done in PR #228