forked from calabash/run_loop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
30 lines (26 loc) · 869 Bytes
/
Guardfile
File metadata and controls
30 lines (26 loc) · 869 Bytes
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
notification :growl, sticky: false, priority: 0
logger level: :info
clearing :on
guard 'bundler' do
watch('Gemfile')
watch(/^.+\.gemspec/)
end
# NOTE: This Guardfile only watches unit specs.
# Automatically running the integration specs would repeatedly launch the
# simulator, stealing screen focus and making everyone cranky.
options =
{
cmd: 'bundle exec rspec',
spec_paths: ['spec/lib'],
failed_mode: :focus,
all_after_pass: true,
all_on_start: true
}
guard(:rspec, options) do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/run_loop/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('lib/run_loop.rb') { 'spec/lib' }
watch('spec/spec_helper.rb') { 'spec/lib' }
watch('spec/resources.rb') { 'spec/lib' }
watch('spec/resources/instruments_output') { 'spec/lib' }
end