Skip to content

Commit

Permalink
Added rcov to the mix.
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles authored and jferris committed Nov 28, 2008
1 parent 5c52889 commit 8ccf44f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@
test.db
factory_girl-*.gem
rdoc
coverage
8 changes: 8 additions & 0 deletions Rakefile
Expand Up @@ -3,6 +3,7 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rcov/rcovtask'
require 'date'

desc 'Default: run unit tests.'
Expand All @@ -15,6 +16,13 @@ Rake::TestTask.new(:test) do |t|
t.verbose = true
end

desc 'Performs code coverage on the factory_girl plugin.'
Rcov::RcovTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/*_test.rb']
t.verbose = true
end

desc 'Generate documentation for the factory_girl plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
Expand Down

0 comments on commit 8ccf44f

Please sign in to comment.