Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (25 sloc) 1.124 kb
EXCLUSIONS = ['osx\/objc','spec\/','features\/','gems\/','java\/lib','jsignal_internal']
require 'rake'
require 'cucumber/rake/task'
require 'rspec/core/rake_task'
if defined?(RSpec)
namespace :rcov do
RSpec::Core::RakeTask.new(:rspec_aggregate) do |task|
task.pattern = 'spec/**/*_spec.rb'
task.rspec_opts = "--format progress"
task.rcov = true
task.rcov_opts = "-tT --exclude #{EXCLUSIONS.join(',')} " + "--aggregate coverage/coverage.data"
end
Cucumber::Rake::Task.new(:cucumber_aggregate) do |task|
task.rcov = true
task.rcov_opts = "-tT --exclude #{EXCLUSIONS.join(',')} " + "--aggregate coverage/coverage.data"
end
task :clean_aggregate do
rm "coverage/coverage.data" if File.exist?("coverage/coverage.data")
end
end
desc "Run cumulative coverage from rspec then cucumber"
task :rspec_first => ["rcov:clean_aggregate","rcov:rspec_aggregate", "rcov:cucumber_aggregate"]
desc "Run cumulative coverage from cucumber then rspec"
task :cucumber_first => ["rcov:clean_aggregate", "rcov:cucumber_aggregate","rcov:rspec_aggregate"]
end
Jump to Line
Something went wrong with that request. Please try again.