Add Coveralls for code coverage reporting
This commit is contained in:
parent
ab9befb30b
commit
19b63d2663
3
Gemfile
3
Gemfile
|
@ -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
|
||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -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
|
||||
|
|
12
README.md
12
README.md
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue