diff options
-rw-r--r-- | spec/spec_helper.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 2a6f4b561..f41f7aeb2 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,5 +1,15 @@ +require 'simplecov' require 'coveralls' -Coveralls.wear! + +# Generate coverage locally in html as well as in coveralls.io +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] +SimpleCov.start('rails') do + add_filter 'commonlib' + add_filter 'vendor/plugins' +end # This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. |