Permalink
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent e3676a5 commit cd8f9a49d4d579dbf5dc1f3ea828e24ac0cc47ef @sferik sferik committed Feb 26, 2013
Showing with 14 additions and 8 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 README.md
  3. +10 −8 spec/helper.rb
View
@@ -11,6 +11,7 @@ group :development do
end
group :test do
+ gem 'coveralls', :require => false
gem 'json', :platforms => :ruby_18
gem 'rspec', '>= 2.11'
gem 'simplecov', :require => false
View
@@ -1,13 +1,16 @@
# TweetStream
+
[![Gem Version](https://badge.fury.io/rb/tweetstream.png)][gem]
[![Build Status](https://secure.travis-ci.org/intridea/tweetstream.png?branch=master)][travis]
[![Dependency Status](https://gemnasium.com/intridea/tweetstream.png?travis)][gemnasium]
[![Code Climate](https://codeclimate.com/github/intridea/tweetstream.png)][codeclimate]
+[![Coverage Status](https://coveralls.io/repos/intridea/tweetstream/badge.png?branch=master)][coveralls]
[gem]: https://rubygems.org/gems/tweetstream
[travis]: http://travis-ci.org/intridea/tweetstream
[gemnasium]: https://gemnasium.com/intridea/tweetstream
[codeclimate]: https://codeclimate.com/github/intridea/tweetstream
+[coveralls]: https://coveralls.io/r/intridea/tweetstream
TweetStream provides simple Ruby access to [Twitter's Streaming API](https://dev.twitter.com/docs/streaming-api).
View
@@ -1,11 +1,11 @@
-unless ENV['CI']
- require 'simplecov'
- SimpleCov.start do
- add_filter '.bundle'
- add_group 'Tweetstream', 'lib/tweetstream'
- add_group 'Specs', 'spec'
- end
-end
+require 'simplecov'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start
require 'tweetstream'
require 'tweetstream/site_stream_client'
@@ -14,6 +14,8 @@
require 'webmock/rspec'
require 'yajl'
+WebMock.disable_net_connect!(:allow => 'coveralls.io')
+
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = :expect

0 comments on commit cd8f9a4

Please sign in to comment.