From 430acc2ec1c1e53fb99f4d0609510c1a9acd1bd8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Wed, 28 Nov 2018 19:53:11 +0500 Subject: [PATCH] Configure Coveralls --- .simplecov | 7 +++++++ Gemfile | 3 +++ Gemfile.lock | 26 ++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) diff --git a/.simplecov b/.simplecov index ebe7b2c..7c25726 100644 --- a/.simplecov +++ b/.simplecov @@ -1,5 +1,12 @@ # frozen_string_literal: true +require 'coveralls' + +SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter, +]) + SimpleCov.start 'rails' do add_filter '/factories/' add_filter '/spec/' diff --git a/Gemfile b/Gemfile index ea62fde..fec7405 100644 --- a/Gemfile +++ b/Gemfile @@ -101,6 +101,9 @@ group :development do end group :test do + # A Ruby implementation of the Coveralls API. + gem 'coveralls', require: false + gem 'database_cleaner', '~> 1.7' # Code coverage for Ruby 1.9+ with a powerful configuration library diff --git a/Gemfile.lock b/Gemfile.lock index 3292445..a9db57a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -57,10 +57,18 @@ GEM byebug (10.0.2) coderay (1.1.2) concurrent-ruby (1.1.3) + coveralls (0.7.1) + multi_json (~> 1.3) + rest-client + simplecov (>= 0.7) + term-ansicolor + thor crass (1.0.4) database_cleaner (1.7.0) diff-lcs (1.3) docile (1.3.1) + domain_name (0.5.20180417) + unf (>= 0.0.5, < 1.0.0) erubi (1.7.1) execjs (2.7.0) factory_bot (4.11.1) @@ -75,6 +83,8 @@ GEM sassc (>= 1.11) globalid (0.4.1) activesupport (>= 4.2.0) + http-cookie (1.0.3) + domain_name (~> 0.5) i18n (1.1.1) concurrent-ruby (~> 1.0) jaro_winkler (1.5.1) @@ -95,11 +105,16 @@ GEM marcel (0.3.3) mimemagic (~> 0.3.2) method_source (0.9.2) + mime-types (3.2.2) + mime-types-data (~> 3.2015) + mime-types-data (3.2018.0812) mimemagic (0.3.2) mini_mime (1.0.1) mini_portile2 (2.3.0) minitest (5.11.3) msgpack (1.2.4) + multi_json (1.13.1) + netrc (0.11.0) nio4r (2.3.1) nokogiri (1.8.5) mini_portile2 (~> 2.3.0) @@ -150,6 +165,10 @@ GEM rb-fsevent (0.10.3) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) + rest-client (2.0.2) + http-cookie (>= 1.0.2, < 2.0) + mime-types (>= 1.16, < 4.0) + netrc (~> 0.8) rspec-core (3.8.0) rspec-support (~> 3.8.0) rspec-expectations (3.8.2) @@ -213,9 +232,12 @@ GEM actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) + term-ansicolor (1.7.0) + tins (~> 1.0) thor (0.20.3) thread_safe (0.3.6) tilt (2.0.8) + tins (1.20.2) turbolinks (5.2.0) turbolinks-source (~> 5.2) turbolinks-source (5.2.0) @@ -223,6 +245,9 @@ GEM thread_safe (~> 0.1) uglifier (4.1.20) execjs (>= 0.3.0, < 3) + unf (0.1.4) + unf_ext + unf_ext (0.0.7.5) unicode-display_width (1.4.0) web-console (3.7.0) actionview (>= 5.0) @@ -240,6 +265,7 @@ DEPENDENCIES bootsnap (>= 1.1.0) bootstrap (~> 4.1.3) byebug + coveralls database_cleaner (~> 1.7) factory_bot_rails (~> 4.10) faker (~> 1.8)