cargo-mutants icon indicating copy to clipboard operation
cargo-mutants copied to clipboard

Take a list of named mutants to run or to exclude

Open sourcefrog opened this issue 2 years ago • 0 comments

--mutants-from FILE reads a file which is in the same text form as written by --list, one named mutant per line with location, and tests only those mutants.

--exclude-mutants-from FILE does the opposite, and if specified has priority.

It would be easy for small changes to the source to cause mutants to no longer match, so we could also have --match-line-col=BOOL which could be false by default.

This is similar to the feature being added by #174 and might share some implementation, but is simpler and more general but doesn't address the whole user story of iteration.

This would allow people to, for example, reduce a list of mutants that they think are now fixed, or use their own scripting to work out which ones to test.

sourcefrog avatar Dec 23 '23 06:12 sourcefrog