aboutsummaryrefslogtreecommitdiffstats
path: root/Guardfile
blob: 9e48349ad5aee3ed30affb694612fa374dd881e3 (plain)
1
2
3
4
5
6
7
8
9
# frozen-string-literal: true

guard :minitest, env: { "SKIP_COVERAGE" => true } do
  # with Minitest::Unit
  watch(%r{^test/(.*)\/?test_(.*)\.rb$})
  watch(%r{^lib/(.*/)?([^/]+)\.rb$})     { |m| ["test/#{m[1]}test_#{m[2]}.rb", "test/#{m[1]}#{m[2]}"] }
  watch(%r{^test/test_helper\.rb$})      { "test" }
  watch(%r{^test/utils/.*\.rb})          { "test" }
end