forked from gwdg/rOCCI-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
28 lines (22 loc) · 741 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
task :default => 'test:all'
require 'rspec/core/rake_task'
#require 'cucumber/rake/task'
namespace :test do
=begin
Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = "--format pretty"
ENV['COVERAGE'] = "true"
end
=end
RSpec::Core::RakeTask.new(:rspec) do |t|
ENV['COVERAGE'] = "true"
end
desc "Run cucumber & rspec to generate aggregated coverage"
task :all do |t|
cp File.dirname(__FILE__) + '/etc/backend/dummy/dummy.json', File.dirname(__FILE__) + '/etc/backend/default.json'
rm "coverage/coverage.data" if File.exist?("coverage/coverage.data")
Rake::Task['test:rspec'].invoke
rm File.dirname(__FILE__) + '/etc/backend/default.json'
# Rake::Task["rcov:cucumber"].invoke
end
end