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

safety mutation tests #2040

Merged
merged 26 commits into from
Sep 26, 2024
Merged

safety mutation tests #2040

merged 26 commits into from
Sep 26, 2024

Conversation

maxime-desroches
Copy link
Contributor

@maxime-desroches maxime-desroches commented Sep 24, 2024

Apply mutations on the intersection between the git diff and code coverage for each safety test.

This prevents new untested/not fully tested code from being added to the repo and forces to update the tests when refactoring something. In the future, we could extend the mutations to the full code coverage, but it currently has too many false positives.

This is a good failure metric since new code should be tested with mutations resilience in mind.

@maxime-desroches maxime-desroches marked this pull request as ready for review September 25, 2024 00:56
@maxime-desroches maxime-desroches merged commit 78b49ab into master Sep 26, 2024
11 checks passed
@maxime-desroches maxime-desroches deleted the safety_mutation branch September 26, 2024 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant