-
Notifications
You must be signed in to change notification settings - Fork 135
Use coverage to filter out mutations #438
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
Use coverage to filter out mutations #438
Conversation
….py is used to filter down mutations
We need to move up some other calls (copy_also_copy_files() and setup_source_paths()) so that their effects are in place when we do code coverage
Otto-AA
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR!
I skimmed through the diff and it looks good so far, only minor comments. I likely have time to test it out on the weekend.
e2e_projects/mutate_only_covered_lines/src/mutate_only_covered_lines/__init__.py
Show resolved
Hide resolved
I inspected the file generated in mutants and the "Bar" on line 10 is not mutated, but coverage.py reported that it wasn't covered, so the bug is in coverage.py.
|
Looks very good. While testing, I've found two bugs, but they were not related to this PR 🙃 I've added some more E2E tests, and a minor performance change (only calling Thanks again! |
Closes #395
mutate_only_covered_linesso that the default behavior is NOT to use coverageThis works on my project and in the e2e one.