Skip to content

Commit

Permalink
Adapt to SimpleCov deprecations (#366)
Browse files Browse the repository at this point in the history
We adapt to some changes in the SimpleCov public API.

We also exclude the `spec` subdirectory from line coverage
calculations in order to avoid spurious coverage fluctuations.
  • Loading branch information
leoarnold committed Jun 9, 2020
1 parent e39fcca commit 6e3ca6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/coverage_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'simplecov'
require 'coveralls'

SimpleCov.adapters.define 'github_api' do
SimpleCov.profiles.define 'github_api' do
add_filter "/spec/"
add_filter "/features/"

Expand Down
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov.formatters = [
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
command_name 'ci'

add_filter '/spec/'
end
end

Expand Down

0 comments on commit 6e3ca6f

Please sign in to comment.