Skip to content
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent 75b57ee commit 6e422b8216dd927d33ce0156ed3d054c463f8647 @sferik committed
Showing with 12 additions and 6 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 README.md
  3. +8 −6 spec/helper.rb
View
1 Gemfile
@@ -14,6 +14,7 @@ group :development do
end
group :test do
+ gem 'coveralls', :require => false
gem 'rspec', '>= 2.11'
gem 'simplecov', :require => false
end
View
3 README.md
@@ -1,13 +1,16 @@
# MultiXML
+
[![Gem Version](https://badge.fury.io/rb/multi_xml.png)][gem]
[![Build Status](https://secure.travis-ci.org/sferik/multi_xml.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/sferik/multi_xml.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/github/sferik/multi_xml.png)][codeclimate]
+[![Coverage Status](https://coveralls.io/repos/sferik/multi_xml/badge.png?branch=master)][coveralls]
[gem]: https://rubygems.org/gems/multi_xml
[travis]: http://travis-ci.org/sferik/multi_xml
[gemnasium]: https://gemnasium.com/sferik/multi_xml
[codeclimate]: https://codeclimate.com/github/sferik/multi_xml
+[coveralls]: https://coveralls.io/r/sferik/multi_xml
A generic swappable back-end for XML parsing
View
14 spec/helper.rb
@@ -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 'multi_xml'
require 'rspec'

0 comments on commit 6e422b8

Please sign in to comment.
Something went wrong with that request. Please try again.