-
Notifications
You must be signed in to change notification settings - Fork 136
/
Guardfile
37 lines (34 loc) · 1.18 KB
/
Guardfile
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
scope group: :unit_test
group :unit_test do
guard 'rspec', cmd:
"bundle exec rspec -P \"spec/lib/auth0/**/*#{ENV['PATTERN']}*_spec.rb\"--drb --format Fuubar --color" do
# run every updated spec file
watch(%r{^spec/.+_spec\.rb$})
# run the lib specs when a file in lib/ changes
watch(%r{^lib/(.+)\.rb$}) { 'spec' }
# run all test for helper changes
watch('spec/spec_helper.rb') { 'spec' }
end
end
group :integration do
guard 'rspec', cmd:
"MODE=full bundle exec rspec -P \"spec/integration/**/*#{ENV['PATTERN']}*_spec.rb\" --drb --format Fuubar --color" do
# run every updated spec file
watch(%r{^spec/.+_spec\.rb$})
# run the lib specs when a file in lib/ changes
watch(%r{^lib/(.+)\.rb$}) { 'spec' }
# run all test for helper changes
watch('spec/spec_helper.rb') { 'spec' }
end
end
group :full do
guard 'rspec', cmd:
'MODE=full bundle exec rspec --drb --format Fuubar --color' do
# run every updated spec file
watch(%r{^spec/.+_spec\.rb$})
# run the lib specs when a file in lib/ changes
watch(%r{^lib/(.+)\.rb$}) { 'spec' }
# run all test for helper changes
watch('spec/spec_helper.rb') { 'spec' }
end
end