Repository navigation
CLAUDE.md: confirm a mutant misbehaves before trusting a clean result - #22
Merged
Merged
Conversation
A mutant that silently lacks its deliberate bug (here, one built from a branch before the change was committed) gives a clean result that looks like a passing test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01736kJUqyDw9zM3Bkh2W2QT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Adds one sentence to the mutation-test rule in
CLAUDE.md: before trusting a clean mutation result, confirm that the mutant differs from the change on at least one query.Why
A mutation test is only meaningful if the mutant really contains its deliberate bug. While testing #21, the first mutant was built from the branch before the change was committed, so the patch that should have broken it had nothing to apply to. The mutant was effectively
master, and it reported 0 differences, which looks just like a passing test. Rebuilt from the committed change, the same mutant differed on 50 of 600 queries.Documentation only.
Generated by Claude Code