Skip to content

Commit

Permalink
Add coverage tools
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Oct 18, 2013
1 parent 1817398 commit b81deac
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ source 'https://rubygems.org'
# Specify gem dependencies in active_model_serializers.gemspec
gemspec

gem "sqlite3"
gem 'sqlite3'
gem 'coveralls', :require => false
gem 'simplecov', :require => false
12 changes: 12 additions & 0 deletions test/coverage_setup.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
add_group "lib", "lib"
add_group "test", "test"
end
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'bundler/setup'
require 'coverage_setup'
require 'test/unit'
require 'active_model_serializers'
require 'fixtures/poro'
Expand Down

0 comments on commit b81deac

Please sign in to comment.