cargo-mutants
cargo-mutants copied to clipboard
Track which version introduced a mutation pattern
In short,
- The json version of mutants should say which cargo-mutants release introduced this pattern
- There should be a
--patterns-versionoption to generate only mutants that would have been produced by a given cargo-mutants version.
Doing this with perfect fidelity might be complex, if e.g. we fix bugs causing some mutants to be lost, or when generation depends on the interaction of several features. However, we could have tests asserting that particular trees generate particular mutants with certain pattern versions, and then freeze that output.
Discussed in https://github.com/sourcefrog/cargo-mutants/discussions/228
Related: #224 about documenting stability.