-
Notifications
You must be signed in to change notification settings - Fork 979
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
slither-mutate: fit and finish #2302
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Pylint failure is due to the mutate function which has branches for adding up different mutant types. Could use a switch, but that hardly cleans things up. Should I ignore this warning? Or do you all have any recommendations for refactoring it? |
Probably fine to ignore at the function level |
This PR is done & ready for a final review |
slither-mutate: bugfix when two files have the same name
This PR takes care of a handful of random quality-of-life improvements that will make slither-mutate as useful as possible out-of-the box during code reviews. So far, improvements include:
One maybe-controversial change is a rebrand from reporting "in/valid" mutants to reporting "un/caught" mutants. The word "valid" sounds like a good thing to most people, but more valid mutants means worse test coverage, which is bad (& often confuses me). In contrast, "uncaught" (previously "valid") sounds to the untrained ear like something was missed, which it was. While "caught" (previously "invalid") sounds like tests did their job, which they did. This also frees up the term "invalid mutant" to refer to mutants which do not compile, which makes more sense to me. Note that this new terminology does not follow the standards established in academic literature. But, it should make it easier for newcomers to wrap their head around what's going on. A worthwhile tradeoff IMO but lmk if you disagree.
Some additional features I'd like to include in this PR before we merge:
--quick
the default (skip tweak mutants if revert/comment mutants in the same expression are uncaught), replace it with a--comprehensive
flag that will test all mutants (current default)