Skip to content

Commit

Permalink
Setup coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
hirocaster committed Aug 25, 2015
1 parent 458ca33 commit 378b95d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions activerecord-sharding.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'pry-byebug'
spec.add_development_dependency 'awesome_print'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'coveralls'
end
10 changes: 8 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
require 'simplecov'
require 'coveralls'
Coveralls.wear!
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter 'vendor'
add_filter 'spec'
add_filter '/spec'
add_filter '/vendor'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
Expand Down

0 comments on commit 378b95d

Please sign in to comment.