Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track which version introduced a mutation pattern #292

Open
sourcefrog opened this issue Feb 25, 2024 Discussed in #228 · 0 comments
Open

Track which version introduced a mutation pattern #292

sourcefrog opened this issue Feb 25, 2024 Discussed in #228 · 0 comments
Labels
enhancement New feature or request filter About filtering, and selecting mutants

Comments

@sourcefrog
Copy link
Owner

In short,

  • The json version of mutants should say which cargo-mutants release introduced this pattern
  • There should be a --patterns-version option 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 #228

Related: #224 about documenting stability.

@sourcefrog sourcefrog added enhancement New feature or request filter About filtering, and selecting mutants labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request filter About filtering, and selecting mutants
Projects
None yet
Development

No branches or pull requests

1 participant