From 850ce726495028afb47e08301706964bfcd9b3d4 Mon Sep 17 00:00:00 2001 From: Matthew Rothenberg Date: Sat, 26 Apr 2014 12:02:54 -0400 Subject: [PATCH] add simplecov and coveralls for test coverage help me figure out where I need to look at more closely when making changes like this --- .coveralls.yml | 2 ++ emoji_data.gemspec | 2 ++ spec/spec_helper.rb | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..8bed0ce --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: travis-ci + diff --git a/emoji_data.gemspec b/emoji_data.gemspec index 983ba5a..655e8d6 100644 --- a/emoji_data.gemspec +++ b/emoji_data.gemspec @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index af75bcd..dbf192b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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