-
Notifications
You must be signed in to change notification settings - Fork 13
/
Rakefile
32 lines (25 loc) · 855 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
29
30
31
32
require "bundler/gem_tasks"
require 'ci/reporter/test_utils/rake'
include CI::Reporter::TestUtils::Rake
namespace :generate do
task :clean do
rm_rf "acceptance/reports"
end
task :rspec do
rspec = "#{Gem.loaded_specs['rspec-core'].gem_dir}/exe/rspec"
run_ruby_acceptance "-S #{rspec} --require ci/reporter/rake/rspec_loader --format CI::Reporter::RSpecFormatter acceptance/rspec_example_spec.rb"
end
task :all => [:clean, :rspec]
end
task :acceptance => "generate:all"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:acceptance_spec) do |t|
t.pattern = FileList['acceptance/verification_spec.rb']
t.rspec_opts = "--color"
end
task :acceptance => :acceptance_spec
RSpec::Core::RakeTask.new(:unit_spec) do |t|
t.pattern = FileList['spec']
t.rspec_opts = "--color"
end
task :default => [:unit_spec, :acceptance]