From 066c3787055e6744a110a377525c63c9eb1c50e9 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Sat, 22 Dec 2012 22:54:40 -0600 Subject: [PATCH] Add test coverage generation using simplecov --- .gitignore | 1 + Gemfile | 1 + Gemfile.lock | 5 +++++ test/test_helper.rb | 5 ++++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 95b53fa9..5d06760d 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ tags /.bundle /public/assets/ .sass-cache/ +/coverage diff --git a/Gemfile b/Gemfile index 3eb0b523..f559bb35 100644 --- a/Gemfile +++ b/Gemfile @@ -48,6 +48,7 @@ group :development do gem "yard" gem "tolk" gem "bullet" + gem "simplecov" end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index 796ac1c2..38dc8f19 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -162,6 +162,10 @@ GEM libwebsocket (~> 0.1.3) multi_json (~> 1.0) rubyzip + simplecov (0.7.1) + multi_json (~> 1.0) + simplecov-html (~> 0.7.1) + simplecov-html (0.7.1) sprockets (2.2.2) hike (~> 1.2) multi_json (~> 1.0) @@ -221,6 +225,7 @@ DEPENDENCIES sanitize sass-rails selenium-webdriver + simplecov sqlite3 swf_fu therubyracer diff --git a/test/test_helper.rb b/test/test_helper.rb index 78d3af96..8779c868 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' @@ -129,4 +132,4 @@ class ActionController::IntegrationTest end end -end \ No newline at end of file +end