aboutsummaryrefslogtreecommitdiffstats
path: root/Guardfile
blob: a0b76d7bf43871ee148d9fce6b66455c1cba0055 (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