-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGuardfile
More file actions
27 lines (24 loc) · 783 Bytes
/
Guardfile
File metadata and controls
27 lines (24 loc) · 783 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
# vim: ft=ruby
# More info at https://github.com/guard/guard#readme
#
# More info also at https://github.com/guard/guard-rspec -- this one in
# particular details configuration options such as whether to run all tests
# after a failing test starts passing
guard :rspec, cli: '--tag ~slow' do
watch(/^spec\/.+_spec\.rb/)
watch(/^lib\/(.+)\.rb$/) do |match|
%(unit integration qualification conformance).map do |kind|
"spec/#{kind}/lib/#{match[1]}_spec.rb"
end
end
watch('spec/spec_helper.rb') { 'spec' }
watch(%r{^spec/(fixtures|resources)(/|.rb)}) { 'spec' }
end
guard :rubocop, all_on_start: false do
watch('Guardfile')
watch(/.+\.rb$/)
watch(/(?:.+\/)?\.rubocop\.yml$/) { |m| File.dirname(m[0]) }
end
guard :reek do
watch(/^lib\/(.+)\.rb$/)
end