From 5d55c3ae296450e87ce32eb4a41ec553154a10c3 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sat, 31 Dec 2011 05:57:06 -0800 Subject: [PATCH] test coverage analytics --- .gitignore | 9 +++++---- Gemfile | 1 + Gemfile.lock | 5 +++++ spec/spec_helper.rb | 2 ++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 92f59a7..e82ecb0 100644 --- a/.gitignore +++ b/.gitignore @@ -11,7 +11,8 @@ config/settings/*.local.yml config/environments/*.local.yml config/settings.yml public/assets -/spec/.views/ -/spec/.requests/ -/spec/.controllers/ -/spec/.helpers/ \ No newline at end of file +spec/.views/ +spec/.requests/ +spec/.controllers/ +spec/.helpers/ +coverage diff --git a/Gemfile b/Gemfile index f44ce26..21f6818 100644 --- a/Gemfile +++ b/Gemfile @@ -46,6 +46,7 @@ end group :test do gem 'capybara', '~> 1.1.1' gem 'database_cleaner', '~> 0.6.7' + gem 'simplecov', :require => false gem 'spork', '~> 0.9.0.rc' gem 'rb-fsevent', '~> 0.4.3.1' gem 'rb-inotify', '~> 0.8.8' diff --git a/Gemfile.lock b/Gemfile.lock index f81af98..39cd0bc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -200,6 +200,10 @@ GEM multi_json (~> 1.0.4) rubyzip sentient_user (0.3.2) + simplecov (0.5.4) + multi_json (~> 1.0.3) + simplecov-html (~> 0.5.3) + simplecov-html (0.5.3) spork (0.9.0.rc9) sprockets (2.0.3) hike (~> 1.2) @@ -257,6 +261,7 @@ DEPENDENCIES rspec-rails (~> 2.6.1) sass-rails (~> 3.1.0) sentient_user (~> 0.3.2) + simplecov spork (~> 0.9.0.rc) squeel (~> 0.9.3) therubyracer diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a4d9085..6e34352 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -14,5 +14,7 @@ Spork.prefork do end Spork.each_run do + require 'simplecov' + SimpleCov.start 'rails' FactoryGirl.reload end