Permalink
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent 2134510 commit 95a91663b4505d023cfd71eb89a8823f584af6ee @sferik sferik committed Feb 26, 2013
Showing with 13 additions and 6 deletions.
  1. +1 −0 Gemfile
  2. +4 −0 README.md
  3. +8 −6 spec/helper.rb
View
@@ -17,6 +17,7 @@ group :development do
end
group :test do
+ gem 'coveralls'
gem 'rack-test'
gem 'rspec', '>= 2.11'
gem 'simplecov', :require => false
View
@@ -1,13 +1,17 @@
# OmniAuth: Standardized Multi-Provider Authentication
+
[![Gem Version](https://badge.fury.io/rb/omniauth.png)][gem]
[![CI Build Status](https://secure.travis-ci.org/intridea/omniauth.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/intridea/omniauth.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/github/intridea/omniauth.png)][codeclimate]
+[![Coverage Status](https://coveralls.io/repos/intridea/omniauth/badge.png?branch=master)][coveralls]
+
[gem]: https://rubygems.org/gems/omniauth
[travis]: http://travis-ci.org/intridea/omniauth
[gemnasium]: https://gemnasium.com/intridea/omniauth
[codeclimate]: https://codeclimate.com/github/intridea/omniauth
+[coveralls]: https://coveralls.io/r/intridea/omniauth
**OmniAuth 1.0 has several breaking changes from version 0.x. You can set
the dependency to `~> 0.3.2` if you do not wish to make the more difficult
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 'rack/test'

0 comments on commit 95a9166

Please sign in to comment.