mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
Added rcov to the mix.
This commit is contained in:
parent
5c52889a63
commit
8ccf44fbd1
2 changed files with 9 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
test.db
|
||||
factory_girl-*.gem
|
||||
rdoc
|
||||
coverage
|
8
Rakefile
8
Rakefile
|
@ -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.'
|
||||
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue