This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'cucumber/rake/task' #I have to add this | |
| require 'spec/rake/spectask' | |
| namespace :rcov do | |
| Cucumber::Rake::Task.new(:cucumber) do |t| | |
| t.rcov = true | |
| t.rcov_opts = %w{--rails --exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data} | |
| t.rcov_opts << %[-o "coverage"] | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This assumes you have the metric_fu and kablame plugins installed. | |
| # Set the artifacts dir for development | |
| ENV['CC_BUILD_ARTIFACTS'] ||= File.expand_path("#{RAILS_ROOT}/metrics") | |
| rspec_base = File.expand_path("#{RAILS_ROOT}/vendor/plugins/rspec/lib") | |
| $LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) | |
| require 'spec/rake/spectask' | |
| require 'spec/rake/verify_rcov' |
NewerOlder