Permalink
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent 8d0a9d0 commit 3ecc82bd645cb8525736cd0712d142506083e206 @sferik sferik committed Mar 2, 2013
Showing with 12 additions and 7 deletions.
  1. +1 −0 Gemfile
  2. +3 −1 README.md
  3. +8 −6 spec/helper.rb
View
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
gem 'rake'
group :test do
+ gem 'coveralls', :require => false
gem 'rspec', '>= 2.11'
gem 'simplecov', :require => false
end
View
@@ -1,14 +1,16 @@
-# delayed_job Mongoid backend
+# DelayedJob Mongoid backend
[![Gem Version](https://badge.fury.io/rb/delayed_job_mongoid.png)][gem]
[![Build Status](https://secure.travis-ci.org/collectiveidea/delayed_job_mongoid.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/collectiveidea/delayed_job_mongoid.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/github/collectiveidea/delayed_job_mongoid.png)][codeclimate]
+[![Coverage Status](https://coveralls.io/repos/collectiveidea/delayed_job_mongoid/badge.png?branch=master)][coveralls]
[gem]: https://rubygems.org/gems/delayed_job_mongoid
[travis]: http://travis-ci.org/collectiveidea/delayed_job_mongoid
[gemnasium]: https://gemnasium.com/collectiveidea/delayed_job_mongoid
[codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid
+[coveralls]: https://coveralls.io/r/collectiveidea/delayed_job_mongoid
## Requirements
View
@@ -1,9 +1,11 @@
-unless ENV['CI']
- require 'simplecov'
- SimpleCov.start do
- add_filter 'spec'
- end
-end
+require 'simplecov'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start
require 'rspec'
require 'delayed_job_mongoid'

0 comments on commit 3ecc82b

Please sign in to comment.