Skip to content

Commit d2d15db

Browse files
hsbtclaude
andcommitted
Silence coverage report output from coverage:report task
The collate run printed a "Coverage report generated for ..." line listing every per-process command name after each test/spec run. Mirror the stdout redirection already used in spec_helper's SimpleCov at_exit hook so the HTML report is still written without the noisy summary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9b77394 commit d2d15db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ task "coverage:report" do
136136
next
137137
end
138138

139+
$stdout = File.open(File::NULL, "w")
139140
SimpleCov.collate Dir[resultset] do
140141
coverage_dir "coverage"
141142
add_filter "/test/"
@@ -153,6 +154,8 @@ task "coverage:report" do
153154
src.filename.include?("/lib/bundler/") || src.filename.end_with?("/lib/bundler.rb")
154155
end
155156
end
157+
ensure
158+
$stdout = STDOUT
156159
end
157160

158161
spec = Gem::Specification.load(File.expand_path("rubygems-update.gemspec", __dir__))

0 commit comments

Comments
 (0)