Skip to content

Commit

Permalink
add simplecov and coveralls for test coverage
Browse files Browse the repository at this point in the history
help me figure out where I need to look at more closely when making
changes like this
  • Loading branch information
mroth committed Apr 26, 2014
1 parent eb59f8f commit 850ce72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
service_name: travis-ci

2 changes: 2 additions & 0 deletions emoji_data.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency 'simplecov', '~> 0.7.1'
spec.add_development_dependency 'coveralls', '~> 0.7.0'

spec.required_ruby_version = '>= 1.9.2'
end
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
require 'rspec'
require 'simplecov'
require 'coveralls'
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]
SimpleCov.start do
add_filter '/spec'
add_filter '/.bundle'
end

require 'emoji_data'
include EmojiData

Expand Down

0 comments on commit 850ce72

Please sign in to comment.