tomas-stefano / infinity_test

Continuous testing and a alternative to Autotest and Guard
http://github.com/tomas-stefano/infinity_test
MIT License
217 stars 12 forks source link

Creating heuristics (Add your own mappings) #10

Closed tomas-stefano closed 13 years ago

tomas-stefano commented 13 years ago

This feature is very useful to add flexibility to users that want write your own mappings and behaviours. Something like that:

heuristics do
 watch(%r%^(test|spec)/fixtures/(.*).yml$%) do |changed_file|
   run_test changed_file
 end
 .... # more watch() methods
end

The #heuristics method exists because is more easier to evaluate in the context of Heuristics of the Application object. The #watch methods is the method of the Awesome Watchr gem (For more information see here http://github.com/mynyml/watchr )

Suggestions?

tomas-stefano commented 13 years ago

This feature is done and the explanation is in the History.markdown file:

https://github.com/tomas-stefano/infinity_test/blob/master/History.markdown

I will create the wiki page and add in the Readme for users that want add your own mappings/heuristics to their applications.

Thanks