Repository navigation
feat(ci,scripts): unify coverage-diff into mutation-diff and redesign report - #1266
Merged
Merged
Conversation
kyasbal
requested review from
K53,
RyuSA,
jyane,
kkuchima and
renamoo
as code owners
November 12, 2026 07:06
Contributor
There was a problem hiding this comment.
Code Review
This pull request consolidates the coverage-diff and mutation-diff tools into a single, unified mutation-diff tool. It removes the standalone coverage-diff command and its associated files, updating the documentation, Makefile, and coding rules accordingly. The updated mutation-diff tool now performs differential line coverage, mutation testing, and redundant test detection in a single pass. Additionally, the PR introduces a new terminal styling utility (termstyle.go), a live progress reporter (progress.go), and enhanced reporting formats (both text and GitHub annotations/summaries) that combine coverage and mutation results. I have no feedback to provide as there are no review comments.
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.
Summary
Unifies
scripts/coverage-diffintoscripts/mutation-diffso differential Go line coverage, differential mutation testing, and redundant unit test detection all run under a single command (make mutation-diff), and overhauls terminal/GitHub report readability and live execution progress.Key Changes
scripts/mutation-diff/make mutation-diff):linecov.go) directly intomutation-diff(catching uncovered 0-mutant statements, constructors, andmain.gopaths alongside surviving mutants) and removes the separatescripts/coverage-diffbinary, CI step, and Makefile target.scripts/Go packages by default (removing--include-scripts/MUTATION_INCLUDE_SCRIPTS), and automatically falls back fromjjtogitwhenvcs=autoencounters Git-specific revision syntax (e.g.,origin/main~6).report.go,report_text.go,report_github.go,termstyle.go):report.go(model & coverage attachment),report_text.go(ANSI terminal renderer), andreport_github.go(GitHub Actions annotations &$GITHUB_STEP_SUMMARY).--color=auto|always|never(COLORMake var), Unicode-width-aligned file summary tables (PATCH COV,MUTATION,UNCOVERED LINES),Uncovered Changed Code/Uncovered Changed Linessections, word/operator-boundary inline diff highlighting (HighlightInlineDiff), a topRedundant Tests Summarytable, and plain-EnglishSAME PATH/NO OUTPUT CHECKexplanations grouped by covering test.progress.go):[████░░░░]progress bar, and elapsed timer on interactive TTYs, and clean phase / 25% milestone logs on non-TTYs / CI.Verification
make format-go&make lint-go:0 issuesgo test -race ./scripts/...: passedmake mutation-diff: Patch Coverage87.5%(898 / 1,026), Mutation Score92.5%(74 / 80), Redundant Tests0