From f7de43de10bd46006e9407b74ea440c32068381f Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 5 Aug 2015 14:16:44 +0200 Subject: [PATCH 1/5] adds coveralls gem --- Gemfile | 1 + Gemfile.lock | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/Gemfile b/Gemfile index 73325d81d..a0e612360 100644 --- a/Gemfile +++ b/Gemfile @@ -56,5 +56,6 @@ end group :test do gem 'database_cleaner' gem 'poltergeist' + gem 'coveralls', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 9dad0c3ec..e1390d4ab 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -75,6 +75,12 @@ GEM execjs coffee-script-source (1.9.1.1) columnize (0.9.0) + coveralls (0.8.2) + json (~> 1.8) + rest-client (>= 1.6.8, < 2) + simplecov (~> 0.10.0) + term-ansicolor (~> 1.3) + thor (~> 0.19.1) database_cleaner (1.4.1) debug_inspector (0.0.2) devise (3.5.1) @@ -85,6 +91,9 @@ GEM thread_safe (~> 0.1) warden (~> 1.2.3) diff-lcs (1.2.5) + docile (1.1.5) + domain_name (0.5.24) + unf (>= 0.0.5, < 1.0.0) erubis (2.7.0) execjs (2.5.2) factory_girl (4.5.0) @@ -97,6 +106,8 @@ GEM sass (>= 3.3.0, < 3.5) globalid (0.3.5) activesupport (>= 4.1.0) + http-cookie (1.0.2) + domain_name (~> 0.5) i18n (0.7.0) jbuilder (2.3.1) activesupport (>= 3.0.0, < 5) @@ -121,6 +132,7 @@ GEM mini_portile (0.6.2) minitest (5.7.0) multi_json (1.11.2) + netrc (0.10.3) nokogiri (1.6.6.2) mini_portile (~> 0.6.0) orm_adapter (0.5.0) @@ -164,6 +176,10 @@ GEM recaptcha (0.4.0) responders (2.1.0) railties (>= 4.2.0, < 5) + rest-client (1.8.0) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 3.0) + netrc (~> 0.7) rspec-core (3.3.1) rspec-support (~> 3.3.0) rspec-expectations (3.3.0) @@ -191,6 +207,11 @@ GEM sdoc (0.4.1) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) + simplecov (0.10.0) + docile (~> 1.1.0) + json (~> 1.8) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.0) spring (1.3.6) sprockets (3.2.0) rack (~> 1.0) @@ -198,9 +219,12 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) + term-ansicolor (1.3.2) + tins (~> 1.0) thor (0.19.1) thread_safe (0.3.5) tilt (1.4.1) + tins (1.5.4) turbolinks (2.5.3) coffee-rails tzinfo (1.2.2) @@ -208,6 +232,9 @@ GEM uglifier (2.7.1) execjs (>= 0.3.0) json (>= 1.8.0) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.1) warden (1.2.3) rack (>= 1.0) web-console (2.2.1) @@ -232,6 +259,7 @@ DEPENDENCIES capybara ckeditor coffee-rails (~> 4.1.0) + coveralls database_cleaner devise factory_girl_rails From c2091f570c2a4748b2dff0048667248565479d84 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 5 Aug 2015 14:16:58 +0200 Subject: [PATCH 2/5] integrates coveralls in test suite --- spec/rails_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 06687fa9e..d073cc173 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,3 +1,5 @@ +require 'coveralls' +Coveralls.wear!('rails') ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) abort("The Rails environment is running in production mode!") if Rails.env.production? From 2dd0c51f1063eb3e98ca0b4d1f17acbc7a9c5be3 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 5 Aug 2015 14:17:08 +0200 Subject: [PATCH 3/5] integrates coveralls with travis --- .coveralls.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 000000000..6e649991e --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +service_name: travis-ci \ No newline at end of file From 14e48035f641c8f98c2390677c87ff049329efbd Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 5 Aug 2015 14:17:18 +0200 Subject: [PATCH 4/5] ignores local test coverage stats --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 05906bf13..eb917c637 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,5 @@ /spec/examples.txt /config/database.yml /config/secrets.yml + +/coverage From c854d51c6733e7807b2eb18a751616a703915894 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 5 Aug 2015 14:27:17 +0200 Subject: [PATCH 5/5] adds coveralls badge to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 1ae5c25a1..1df4987c8 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Build Status](https://travis-ci.org/AyuntamientoMadrid/participacion.svg?branch=master)](https://travis-ci.org/AyuntamientoMadrid/participacion) [![Code Climate](https://codeclimate.com/github/AyuntamientoMadrid/participacion/badges/gpa.svg)](https://codeclimate.com/github/AyuntamientoMadrid/participacion) [![Dependency Status](https://gemnasium.com/AyuntamientoMadrid/participacion.svg)](https://gemnasium.com/AyuntamientoMadrid/participacion) +[![Coverage Status](https://coveralls.io/repos/AyuntamientoMadrid/participacion/badge.svg?branch=master&service=github)](https://coveralls.io/github/AyuntamientoMadrid/participacion?branch=master) Este es el repositorio de código abierto de la Aplicación de Participación Ciudadana del Ayuntamiento de Madrid.