Skip to content

Commit

Permalink
Remove Coveralls gem, update simplcov
Browse files Browse the repository at this point in the history
Coveralls have changed how they work, the gem is no longer supported,
instead they rely on simplecov, simplecov-lcov and a GitHub action.

Here we revove the Coveralls gem and update simplecov. The coverage is
now output to `coverage/lcov.info`.
  • Loading branch information
mec committed Dec 1, 2023
1 parent f3b014b commit b1ecfc0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 1 addition & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "standard/rake"
require "coveralls/rake/task"

Coveralls::RakeTask.new

RSpec::Core::RakeTask.new(:spec)

task default: %i[standard spec coveralls:push]
task default: %i[standard spec]
3 changes: 2 additions & 1 deletion mail-notify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "coveralls", "~> 0.8.22"
spec.add_development_dependency "simplecov", "~> 0.21"
spec.add_development_dependency "simplecov-lcov"
spec.add_development_dependency "pry", "~> 0.14.1"
spec.add_development_dependency "rails", "7.0.8"
spec.add_development_dependency "rake", "~> 13.0.6"
Expand Down
6 changes: 4 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

require "coveralls"
Coveralls.wear!
require 'simplecov'
require 'simplecov-lcov'
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
SimpleCov.start

require "bundler/setup"
require "action_mailer"
Expand Down

0 comments on commit b1ecfc0

Please sign in to comment.