Skip to content

Commit e9b682f

Browse files
committed
Suppress SimpleCov intermediate coverage result messages during test runs
1 parent 0e9dd7b commit e9b682f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bundler/spec/spec_helper.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@
5959
add_filter "/bundler/tmp/"
6060
add_filter ".gemspec"
6161
end
62+
63+
SimpleCov.print_error_status = false
64+
SimpleCov.at_exit do
65+
$stdout = File.open(File::NULL, "w")
66+
SimpleCov.result.format!
67+
ensure
68+
$stdout = STDOUT
69+
end
6270
rescue LoadError
6371
# SimpleCov is not installed
6472
end

0 commit comments

Comments
 (0)