Permalink
Browse files

Added SimpleCov for more accurate test coverage report.

  • Loading branch information...
1 parent b1c7d37 commit 35011065ecfec44ff0720819912ec77cd01aeb89 @fredwu committed Jun 9, 2011
Showing with 17 additions and 6 deletions.
  1. +1 −1 .gitignore
  2. +2 −1 Gemfile
  3. +4 −0 Gemfile.lock
  4. +7 −4 features/support/env.rb
  5. +3 −0 spec/spec_helper.rb
View
@@ -6,4 +6,4 @@ log/*.log
tmp/
.sass-cache/
config/database.yml
-
+coverage/
View
@@ -38,5 +38,6 @@ group :development, :test do
end
group :test do
- gem 'turn', :require => false
+ gem 'turn', :require => false
+ gem 'simplecov', :require => false
end
View
@@ -214,6 +214,9 @@ GEM
json_pure
rubyzip
simple_form (1.4.0)
+ simplecov (0.4.2)
+ simplecov-html (~> 0.4.4)
+ simplecov-html (0.4.5)
slim (0.9.4)
temple (~> 0.3.0)
tilt (~> 1.2)
@@ -272,6 +275,7 @@ DEPENDENCIES
rspec-rails (~> 2.6.1)
sass
simple_form (~> 1.4.0)
+ simplecov
slim-rails
squeel (~> 0.7.0)
turn
@@ -1,6 +1,9 @@
+require 'simplecov'
+SimpleCov.start 'rails'
+
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
-# It is recommended to regenerate this file in the future when you upgrade to a
-# newer version of cucumber-rails. Consider adding your own code to a new file
+# It is recommended to regenerate this file in the future when you upgrade to a
+# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
@@ -13,8 +16,8 @@
Capybara.default_selector = :css
# By default, any exception happening in your Rails application will bubble up
-# to Cucumber so that your scenario will fail. This is a different from how
-# your application behaves in the production environment, where an error page will
+# to Cucumber so that your scenario will fail. This is a different from how
+# your application behaves in the production environment, where an error page will
# be rendered instead.
#
# Sometimes we want to override this default behaviour and allow Rails to rescue
View
@@ -1,3 +1,6 @@
+require 'simplecov'
+SimpleCov.start 'rails'
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
require File.expand_path("../../config/environment", __FILE__)

0 comments on commit 3501106

Please sign in to comment.