Add --changed-files option to report only touched files - #10
Merged
Conversation
Report the coverage status of a given list of files (e.g. a branch's changed files) instead of the project-wide below-100% view. Listed files are shown even when fully covered. The list comes from a file (one repo-relative path per line) or stdin via `-`. Also rename the report heading from "Coverage problems" to "Coverage report". Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
--changed-filesto report the coverage status of a given list of files (for example, a branch's changed files) instead of the project-wide below-100% view.-; a leading./is stripped sogit diff --name-onlyoutput joins cleanly.How to test
bundle exec rspec— 24 examples, 0 failures.bundle exec rubocop— no offenses.printf 'app/javascript/routes.jsx\n' > changed.txt && bundle exec exe/couve spec/fixtures/codeclimate.json report.md --changed-files changed.txt— onlyroutes.jsxappears.git diff --name-only origin/main...HEAD | bundle exec exe/couve coverage.json report.md --changed-files -.bundle exec exe/couve spec/fixtures/codeclimate.json report.md— unchanged behavior (all below-100% files).Notes
🤖 Generated with Claude Code