2015-08-08 17:08:15 +02:00
|
|
|
# A sample Guardfile
|
|
|
|
# More info at https://github.com/guard/guard#readme
|
|
|
|
|
|
|
|
guard :minitest do
|
|
|
|
# with Minitest::Unit
|
|
|
|
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
|
2016-12-16 23:15:27 +01:00
|
|
|
watch(%r{^test/(.*/)?helper.rb$}) { |m| "test/#{m[1]}test_all.rb" }
|
2015-08-08 17:08:15 +02:00
|
|
|
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
|
|
|
|
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
|
|
|
|
2016-12-14 18:06:32 +01:00
|
|
|
#Arm instructions
|
|
|
|
watch(%r{^lib/arm/instructions/(.+)_instruction.rb}) { |m| "test/arm/test_#{m[1]}.rb" }
|
|
|
|
|
2016-12-16 00:14:09 +01:00
|
|
|
#parfait basics
|
|
|
|
watch(%r{^lib/typed/parfait/(.+).rb}) { |m| "test/typed/parfait/test_#{m[1]}.rb" }
|
|
|
|
watch(%r{^lib/typed/parfait/type.rb}) { |m| "test/typed/type/test_all.rb" }
|
|
|
|
watch(%r{^lib/typed/parfait/typed_method.rb}) { |m| "test/typed/type/test_method_api.rb" }
|
2015-08-08 17:08:15 +02:00
|
|
|
|
|
|
|
end
|