From acfb973efc9be98dd34af6d06128ef47e997d4ee Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Mon, 11 Jan 2016 22:01:33 +0100 Subject: [PATCH] Add simplecov for code coverage --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 7 +++++++ test/test_helper.rb | 3 +++ 4 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index 70851bc..9d0c400 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ /log/*.log /tmp config/morph.yml +/coverage diff --git a/Gemfile b/Gemfile index 937e550..bae8f10 100644 --- a/Gemfile +++ b/Gemfile @@ -54,6 +54,7 @@ group :test do gem 'factory_girl_rails' gem 'shoulda' gem 'faker' + gem 'simplecov', require: false end # Use ActiveModel has_secure_password diff --git a/Gemfile.lock b/Gemfile.lock index d3d8d88..b4b646c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -54,6 +54,7 @@ GEM coffee-script-source execjs coffee-script-source (1.9.1.1) + docile (1.1.5) elasticsearch (1.0.8) elasticsearch-api (= 1.0.7) elasticsearch-transport (= 1.0.7) @@ -174,6 +175,11 @@ GEM shoulda-context (1.2.1) shoulda-matchers (2.8.0) activesupport (>= 3.0.0) + simplecov (0.11.1) + docile (~> 1.1.0) + json (~> 1.8) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.0) slim (3.0.3) temple (~> 0.7.3) tilt (>= 1.3.3, < 2.1) @@ -236,6 +242,7 @@ DEPENDENCIES sass-rails sdoc (~> 0.4.0) shoulda + simplecov slim-rails spring sqlite3 diff --git a/test/test_helper.rb b/test/test_helper.rb index 8a6e923..f92d6dc 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,3 +1,6 @@ +require 'simplecov' +SimpleCov.start 'rails' + ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help'