Skip to content

Commit 8098303

Browse files
author
Dawa Ometto
authored
Fix coveralls (#83)
1 parent b53ef7f commit 8098303

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ gem 'thin', require: false
66
group :development do
77
gem 'rspec', '~> 3.9'
88
gem 'simplecov'
9+
gem 'simplecov-lcov', '~> 0.8.0'
910
gem 'rack-test'
1011
end
1112

12-
gem 'coveralls', '~>0.8.23', require: false
13-
1413
gemspec

LATEST_CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
* Added the `--redis` command line argument.
44
* Added Docker support.
5+
* Use Redis on Heroku by default to avoid flakiness caused by Heroku's dynos.
56
* Change default branch name to `main`
67
* Do not mail when the diff is empty.

spec/spec_helper.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
require 'simplecov'
2+
require 'simplecov-lcov'
23
require 'fixtures'
34
require 'rack/test'
45

56
if ENV['CI']
6-
require 'coveralls'
7-
Coveralls.wear!
7+
SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true
8+
SimpleCov::Formatter::LcovFormatter.config.single_report_path = 'coverage/lcov.info'
9+
SimpleCov.formatter = SimpleCov::Formatter::LcovFormatter
810
end
11+
SimpleCov.start
912

1013
ENV['RACK_ENV'] = 'test'
1114

0 commit comments

Comments
 (0)