Coveralls Reborn for Ruby
An up-to-date fork of lemurheavy/coveralls-ruby
Add to your Gemfile
:
gem 'coveralls_reborn', '~> 0.24.0', require: false
Psst... you don't need this gem on GitHub Actions.
For a Rails application, just add
gem 'simplecov-lcov', '~> 0.8.0'
to your Gemfile
and
require 'simplecov'
SimpleCov.start 'rails' do
if ENV['CI']
require 'simplecov-lcov'
SimpleCov::Formatter::LcovFormatter.config do |c|
c.report_with_single_file = true
c.single_report_path = 'coverage/lcov.info'
end
formatter SimpleCov::Formatter::LcovFormatter
end
add_filter %w[version.rb initializer.rb]
end
at the top of spec_helper.rb
/ rails_helper.rb
/ test_helper.rb
.
Then follow instructions at Coveralls GitHub Action