From b3f8f6652a91e10407d90d7fd1f045ccc28bac14 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 26 Jan 2016 17:53:10 +0800 Subject: [PATCH] simplecov added --- .gitignore | 2 ++ .simplecov | 3 +++ Gemfile | 2 ++ Gemfile.lock | 12 +++++++++++- 4 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .simplecov diff --git a/.gitignore b/.gitignore index a2b03a61..43009ea4 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ vendor/ log/*.log tmp +coverage + .DS_Store */.DS_Store .DS_Store? diff --git a/.simplecov b/.simplecov new file mode 100644 index 00000000..678db531 --- /dev/null +++ b/.simplecov @@ -0,0 +1,3 @@ +require 'simplecov-rcov' +SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter +SimpleCov.start 'rails' diff --git a/Gemfile b/Gemfile index b4e3bdf6..c00a87f9 100644 --- a/Gemfile +++ b/Gemfile @@ -42,6 +42,8 @@ group :test do gem 'rspec-rails' gem 'factory_girl_rails' gem 'shoulda-matchers' + gem 'simplecov', require: false + gem 'simplecov-rcov' end group :production do #this is used on heroku diff --git a/Gemfile.lock b/Gemfile.lock index 5525a8cc..f26652ce 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -78,6 +78,7 @@ GEM thread_safe (~> 0.1) warden (~> 1.2.3) diff-lcs (1.2.5) + docile (1.1.5) dotenv (2.0.2) erubis (2.7.0) execjs (2.6.0) @@ -203,6 +204,13 @@ GEM tilt (>= 1.1, < 3) shoulda-matchers (3.0.1) activesupport (>= 4.0.0) + simplecov (0.11.1) + docile (~> 1.1.0) + json (~> 1.8) + simplecov-html (~> 0.10.0) + simplecov-html (0.10.0) + simplecov-rcov (0.2.3) + simplecov (>= 0.4.1) slop (3.6.0) sprockets (3.4.0) rack (> 1, < 3) @@ -258,9 +266,11 @@ DEPENDENCIES rspec-rails sass-rails shoulda-matchers + simplecov + simplecov-rcov tunemygc uglifier uservoice-ruby BUNDLED WITH - 1.10.6 + 1.11.2