Skip to content

Commit

Permalink
Make coverage reporting work with coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Jan 10, 2024
1 parent ee844a7 commit fdf6bf9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
require 'simplecov-lcov'

SimpleCov::Formatter::LcovFormatter.config do |c|
c.output_directory = 'coverage'
c.lcov_file_name = 'lcov.info'
c.report_with_single_file = true
end

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::LcovFormatter
])

SimpleCov.start do
add_filter 'spec/'
add_filter 'features/'

enable_coverage :branch
end
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ group :test do
end

group :coverage do
gem 'simplecov', :require => false, :platforms => :ruby
gem 'coveralls', :require => false if ENV['CI']
gem 'simplecov', require: false
gem 'simplecov-lcov', require: false
end

group :debug do
Expand Down

0 comments on commit fdf6bf9

Please sign in to comment.