Skip to content

Commit

Permalink
Add rcov gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
yalab committed Nov 15, 2011
1 parent 922529c commit a1231f8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
db/*.sqlite3
log/*.log
tmp/**/*
coverage/*
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ group :test do
gem 'faker'
gem 'mocha'
gem 'turn', :require => false
gem 'rcov'
end

2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ GEM
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rcov (0.9.11)
rdoc (3.11)
json (~> 1.4)
romkan (0.4.0)
Expand Down Expand Up @@ -159,6 +160,7 @@ DEPENDENCIES
pdfkit
rails (= 3.1.1)
rails3-generators
rcov
sass-rails (~> 3.1.4)
shoulda
shoulda-activemodel
Expand Down
4 changes: 0 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)
require 'rake'

Anmitsu::Application.load_tasks
Empty file added coverage/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions lib/tasks/rcov.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'rcov/rcovtask'

Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
t.rcov_opts = %w{--rails --exclude gems,ext}
end

0 comments on commit a1231f8

Please sign in to comment.