Skip to content

Commit

Permalink
Add Simplecov html formatter
Browse files Browse the repository at this point in the history
The html formatter is useful for checkin coverage locally.
  • Loading branch information
mec committed Feb 23, 2024
1 parent e6c6aee commit 35d8e9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

require "simplecov"
require "simplecov-lcov"

SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter,
])
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start

require "bundler/setup"
Expand Down

0 comments on commit 35d8e9b

Please sign in to comment.