documents guard file
This commit is contained in:
parent
be10e8c6af
commit
86f8594a6f
11
Guardfile
11
Guardfile
@ -1,12 +1,17 @@
|
|||||||
# A sample Guardfile
|
# A sample Guardfile
|
||||||
# More info at https://github.com/guard/guard#readme
|
# More info at https://github.com/guard/guard#readme
|
||||||
|
|
||||||
guard :minitest do
|
guard :minitest do # with Minitest::Unit
|
||||||
# with Minitest::Unit
|
|
||||||
|
# if any test file changes, run that test
|
||||||
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
|
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
|
||||||
|
|
||||||
|
# if any helper in any directory changes, run test_all in the same directory
|
||||||
watch(%r{^test/(.*/)?helper.rb$}) { |m| "test/#{m[1]}test_all.rb" }
|
watch(%r{^test/(.*/)?helper.rb$}) { |m| "test/#{m[1]}test_all.rb" }
|
||||||
|
|
||||||
|
# if any file XX in any directory in the /lib changes, run a test_XX in the
|
||||||
|
# shadow directory in the /test
|
||||||
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
|
watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
|
||||||
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
|
||||||
|
|
||||||
#Arm instructions
|
#Arm instructions
|
||||||
watch(%r{^lib/arm/instructions/(.+)_instruction.rb}) { |m| "test/arm/test_#{m[1]}.rb" }
|
watch(%r{^lib/arm/instructions/(.+)_instruction.rb}) { |m| "test/arm/test_#{m[1]}.rb" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user