From 4c68f815e7c5b4690d9e40b3e4b81d8b03718803 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 1 Dec 2016 13:08:41 +0100 Subject: [PATCH] added coveralls --- .gitignore | 2 ++ Gemfile | 2 ++ Gemfile.lock | 16 ++++++++++++++++ test/test_helper.rb | 3 +++ 4 files changed, 23 insertions(+) diff --git a/.gitignore b/.gitignore index 14be73a99..9a35a3571 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ # Ignore all logfiles and tempfiles. /log/*.log /tmp +/coverage /public/uploads /public/assets @@ -38,6 +39,7 @@ .vagrant .docker + # Do not versionate coveralls token .coveralls.yml diff --git a/Gemfile b/Gemfile index f0f5a271f..a2394f4fc 100644 --- a/Gemfile +++ b/Gemfile @@ -52,6 +52,8 @@ group :development do gem 'capistrano-maintenance', '0.0.5', require: false gem 'active_record_query_trace' + + gem 'coveralls', require: false end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index 694325a16..0eab18efc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -120,6 +120,12 @@ GEM sass-rails (<= 5.0.1) sprockets (< 2.13) connection_pool (2.2.0) + coveralls (0.8.16) + json (>= 1.8, < 3) + simplecov (~> 0.12.0) + term-ansicolor (~> 1.3.0) + thor (~> 0.19.1) + tins (>= 1.6.0, < 2) crack (0.4.3) safe_yaml (~> 1.0.0) database_cleaner (1.4.1) @@ -135,6 +141,7 @@ GEM warden (~> 1.2.3) devise-async (0.9.0) devise (~> 3.2) + docile (1.1.5) domain_name (0.5.25) unf (>= 0.0.5, < 1.0.0) elasticsearch (1.0.12) @@ -375,6 +382,11 @@ GEM sidekiq (>= 2.17.3) tilt (< 2.0.0) simple_oauth (0.3.1) + simplecov (0.12.0) + docile (~> 1.1.0) + json (>= 1.8, < 3) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.0) sinatra (1.4.6) rack (~> 1.4) rack-protection (~> 1.4) @@ -392,6 +404,8 @@ GEM stripe (1.30.2) json (~> 1.8.1) rest-client (~> 1.4) + term-ansicolor (1.3.2) + tins (~> 1.0) test_after_commit (1.0.0) activerecord (>= 3.2) therubyracer (0.12.0) @@ -402,6 +416,7 @@ GEM tilt (1.4.1) timers (4.0.1) hitimes + tins (1.13.0) ttfunk (1.4.0) twitter (5.14.0) addressable (~> 2.3) @@ -472,6 +487,7 @@ DEPENDENCIES chroma coffee-rails (~> 4.1.0) compass-rails (= 2.0.4) + coveralls database_cleaner devise devise-async diff --git a/test/test_helper.rb b/test/test_helper.rb index 2c15f2b0f..4b7c20e5e 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,6 @@ +require 'coveralls' +Coveralls.wear!('rails') + ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help'