diff options
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 16 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 13 |
4 files changed, 31 insertions, 1 deletions
@@ -48,6 +48,7 @@ group :test do gem 'fakeweb' gem 'rspec-rails', '~> 1.3.4' gem 'test-unit', '~> 1.2.3', :platforms => :ruby_19 + gem 'coveralls', :require => false end group :development do diff --git a/Gemfile.lock b/Gemfile.lock index 25b156184..27f574f4f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -34,11 +34,18 @@ GEM net-ssh (>= 2.0.14) net-ssh-gateway (>= 1.1.0) chunky_png (1.2.6) + colorize (0.5.8) columnize (0.3.6) compass (0.12.2) chunky_png (~> 1.2) fssm (>= 0.2.7) sass (~> 3.1) + coveralls (0.6.0) + colorize + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + thor daemons (1.1.9) erubis (2.7.0) eventmachine (1.0.0) @@ -78,6 +85,7 @@ GEM thin memcache-client (1.8.5) mime-types (1.19) + multi_json (1.6.1) net-http-local (0.1.2) net-purge (0.1.0) net-scp (1.1.0) @@ -96,6 +104,8 @@ GEM rdoc (3.12.1) json (~> 1.4) recaptcha (0.3.4) + rest-client (1.6.7) + mime-types (>= 1.16) rmagick (2.13.1) routing-filter (0.2.4) actionpack @@ -123,6 +133,10 @@ GEM ruby_core_source (0.1.5) archive-tar-minitar (>= 0.5.2) sass (3.2.1) + simplecov (0.7.1) + multi_json (~> 1.0) + simplecov-html (~> 0.7.1) + simplecov-html (0.7.1) sinatra (1.2.8) rack (~> 1.1) tilt (>= 1.2.2, < 2.0) @@ -139,6 +153,7 @@ GEM daemons (>= 1.0.9) eventmachine (>= 0.12.6) rack (>= 1.0.0) + thor (0.17.0) tilt (1.3.3) treetop (1.4.11) polyglot @@ -157,6 +172,7 @@ DEPENDENCIES bootstrap-sass capistrano compass + coveralls erubis fakeweb fast_gettext (>= 0.6.0) @@ -1,6 +1,6 @@ # Welcome to Alaveteli! -[](http://travis-ci.org/mysociety/alaveteli) [](https://gemnasium.com/mysociety/alaveteli) +[](http://travis-ci.org/mysociety/alaveteli) [](https://gemnasium.com/mysociety/alaveteli) [](https://coveralls.io/r/mysociety/alaveteli) This is an open source project to create a standard, internationalised platform for making Freedom of Information (FOI) requests in different diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b760c6385..b04ed4b54 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,16 @@ +require 'simplecov' +require 'coveralls' + +# Generate coverage locally in html as well as in coveralls.io +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] +SimpleCov.start('rails') do + add_filter 'commonlib' + add_filter 'vendor/plugins' +end + # This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] = 'test' |