forked from AgileVentures/osra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
41 lines (32 loc) · 1.13 KB
/
Copy pathRakefile
File metadata and controls
41 lines (32 loc) · 1.13 KB
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
36
37
38
39
40
41
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Osra::Application.load_tasks
namespace :cucumber do
desc 'run all aa features'
task :aa do
sh 'cucumber -P -v -r features/aa -r features/support features/aa'
end
desc 'run all hq features'
task :hq do
sh 'cucumber -P -v -r features/hq -r features/support features/hq'
end
end
namespace :spec do
desc 'run all aa specs'
task :aa do
sh 'rspec --exclude-pattern spec/\*\*/hq{,/\*/\*\*}/\*_spec.rb'
end
desc 'run all hq specs'
task :hq do
sh "rspec --pattern 'spec/\*\*/hq{,/\*/\*\*}/\*_spec.rb,spec/models{,/\*/\*\*}/\*_spec.rb'"
end
end
desc 'run all rspec and cucumber tests for "aa" and "hq"'
task :default => [:spec, 'cucumber:hq', 'cucumber:aa']
namespace :test do
desc 'run all rspec and cucumber tests for "aa"'
task :aa => ['spec:aa', 'cucumber:aa']
desc 'run all rspec and cucumber tests for "hq"'
task :hq => ['spec:hq', 'cucumber:hq']
end