Permalink
Browse files

Add Coveralls for code coverage reporting

  • Loading branch information...
1 parent ab9befb commit 19b63d266300f769747d68d3721df25e2014edfb @sferik sferik committed Feb 28, 2013
Showing with 31 additions and 6 deletions.
  1. +2 −1 Gemfile
  2. +11 −1 Gemfile.lock
  3. +9 −3 README.md
  4. +9 −1 test/test_helper.rb
View
@@ -27,7 +27,8 @@ group :production do
end
group :test do
- gem 'simplecov'
+ gem 'coveralls', :require => false
+ gem 'simplecov', :require => false
gem 'sqlite3'
gem 'webmock'
end
View
@@ -41,6 +41,13 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.5.0)
+ colorize (0.5.8)
+ coveralls (0.5.8)
+ colorize
+ json
+ rest-client
+ simplecov (>= 0.7)
+ thor
crack (0.3.2)
devise (2.2.3)
bcrypt-ruby (~> 3.0)
@@ -62,7 +69,7 @@ GEM
http_accept_language (1.0.2)
i18n (0.6.4)
journey (1.0.4)
- jquery-rails (2.1.4)
+ jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (3.0.1)
@@ -129,6 +136,8 @@ GEM
rdoc (3.12.2)
json (~> 1.4)
remotipart (1.0.5)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
safe_yaml (0.8.4)
sass (3.2.6)
sass-rails (3.2.6)
@@ -171,6 +180,7 @@ PLATFORMS
DEPENDENCIES
arel
+ coveralls
devise
fastercsv
geokit
View
@@ -1,8 +1,14 @@
-# Adopt-a-Hydrant [![Build Status](https://secure.travis-ci.org/codeforamerica/adopt-a-hydrant.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/codeforamerica/adopt-a-hydrant.png?travis)][gemnasium]
-Claim responsibility for shoveling out a fire hydrant after it snows.
+# Adopt-a-Hydrant
+
+[![Build Status](https://secure.travis-ci.org/codeforamerica/adopt-a-hydrant.png?branch=master)][travis]
+[![Dependency Status](https://gemnasium.com/codeforamerica/adopt-a-hydrant.png?travis)][gemnasium]
+[![Coverage Status](https://coveralls.io/repos/codeforamerica/adopt-a-hydrant/badge.png?branch=master)][coveralls]
[travis]: http://travis-ci.org/codeforamerica/adopt-a-hydrant
[gemnasium]: https://gemnasium.com/codeforamerica/adopt-a-hydrant
+[coveralls]: https://coveralls.io/r/codeforamerica/adopt-a-hydrant
+
+Claim responsibility for shoveling out a fire hydrant after it snows.
## Screenshot
![Adopt-a-Hydrant](https://github.com/codeforamerica/adopt-a-hydrant/raw/master/screenshot.png "Adopt-a-Hydrant")
@@ -60,7 +66,7 @@ A successful deployment to Heroku requires a few setup steps:
`heroku run bundle exec rake db:seed`
-6. Keep in mind that the Heroku free Postgres plan only allows up to 10,000 rows, so if your city has more than 10,000 fire hydrants (or other thing to be adopted), you will need to upgrade to the $9/month plan.
+6. Keep in mind that the Heroku free Postgres plan only allows up to 10,000 rows, so if your city has more than 10,000 fire hydrants (or other thing to be adopted), you will need to upgrade to the $9/month plan.
## Contributing
In the spirit of [free software][free-sw], **everyone** is encouraged to help
View
@@ -1,6 +1,14 @@
ENV["RAILS_ENV"] = "test"
+
require 'simplecov'
-SimpleCov.start 'rails'
+require 'coveralls'
+
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+SimpleCov.start('rails')
+
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'webmock/test_unit'

0 comments on commit 19b63d2

Please sign in to comment.