-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathRakefile
35 lines (28 loc) · 863 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
33
34
35
# encoding: UTF-8
require "spec/rake/spectask"
require "cucumber"
require "cucumber/rake/task"
task :default => :spec
desc "Run Cucumber Features"
Cucumber::Rake::Task.new do |t|
t.cucumber_opts = "-c -n"
end
desc "Run all of the specs"
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "spec/spec.opts"]
t.fail_on_error = false
end
namespace :spec do
desc "Generate HTML report for failing examples"
Spec::Rake::SpecTask.new('report') do |t|
t.spec_files = FileList['failing_examples/**/*.rb']
t.spec_opts = ["--format", "html:doc/tools/reports/failing_examples.html", "--diff", '--options', '"spec/spec.opts"']
t.fail_on_error = false
end
desc "Run all spec with RCov"
Spec::Rake::SpecTask.new(:rcov) do |t|
t.rcov = true
t.rcov_dir = 'doc/tools/coverage/'
t.rcov_opts = ['--exclude', 'spec']
end
end