-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathRakefile
34 lines (28 loc) · 813 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
#-*- ruby -*-
require 'rubygems'
require 'bundler/setup'
require "rake"
require "rdoc/task"
require 'rspec/core/rake_task'
task :default => [ :test ]
task :test => [ :specs, :features ]
desc "run rspec tests in test/"
RSpec::Core::RakeTask.new(:specs) do |t|
t.spec_files = FileList['test/*.rb']
t.verbose = true
end
desc "run cucumber features in features/"
task :features do |t|
system("cd features && cucumber -r . .")
end
task :failing do |t|
system("cd features && cucumber -r . -e inputs -e outputs . --format rerun --out rerun.txt")
system("cd features && cucumber -r . -e inputs -e outputs @rerun.txt")
end
desc "create rdoc in /doc"
rd = Rake::RDocTask.new("doc") do |rd|
rd.main = "README"
rd.rdoc_files.include("README", "*.rb")
rd.options << "--all"
rd.rdoc_dir = "doc"
end