forked from newcontext-oss/kitchen-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
32 lines (23 loc) · 874 Bytes
/
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
# frozen_string_literal: true
group :red_green_refactor, halt_on_fail: true do
require 'guard/rspec/dsl'
Guard::RSpec::Dsl.new(self).tap do |dsl|
guard :rspec, all_after_pass: true, all_on_start: true,
bundler_env: :inherit, cmd: 'bundle exec rspec',
run_all: {
cmd: 'bundle exec rspec --require support/coverage'
} do
watch dsl.rspec.spec_files
watch(dsl.rspec.spec_helper) { dsl.rspec.spec_dir }
watch(dsl.rspec.spec_support) { dsl.rspec.spec_dir }
dsl.watch_spec_files_for dsl.ruby.lib_files
end
guard :rubocop, all_on_start: true,
cli: '--format clang --display-cop-names' do
watch dsl.rspec.spec_files
watch dsl.rspec.spec_helper
watch dsl.rspec.spec_support
watch dsl.ruby.lib_files
end
end
end