From a573b7aab5739dfb1d1f7524f0647b3bea7f21b6 Mon Sep 17 00:00:00 2001 From: Marc Siegel Date: Fri, 5 Jul 2013 15:46:29 -0400 Subject: [PATCH] Use SimpleCov in addition to publishing to Coveralls.io --- spec/spec_helper.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a865775..4ab2f2e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,15 @@ require 'rubygems' require 'rspec' require 'singleton' +require 'simplecov' require 'coveralls' -Coveralls.wear! + +# Both local SimpleCov and publish to Coveralls.io +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] +SimpleCov.start test_dir = File.dirname(__FILE__) $LOAD_PATH.unshift test_dir unless $LOAD_PATH.include?(test_dir)