Skip to content

Loading…

Added SimpleCov support, updated .gitignore #1

Merged
merged 1 commit into from

2 participants

@gnarmis

I added support for the SimpleCov gem, and updated the .gitignore so the generated report in coverage/ doesn't interfere.

Run rake spec as usual to additionally generate a coverage report.

@daddz daddz merged commit 49c3b64 into daddz:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 3, 2012
  1. @gnarmis
Showing with 4 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 Gemfile
  3. +2 −0 spec/spec_helper.rb
View
1 .gitignore
@@ -1,2 +1,3 @@
*.lock
*.log
+coverage
View
1 Gemfile
@@ -6,5 +6,6 @@ group :test do
gem 'rspec'
gem 'rack-test', :require => "rack/test"
gem 'webrat'
+ gem 'simplecov', :require => false
end
View
2 spec/spec_helper.rb
@@ -1,4 +1,6 @@
ENV['RACK_ENV'] = "test"
+require "SimpleCov"
+SimpleCov.start
require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
Webrat.configure do |conf|
Something went wrong with that request. Please try again.