{"id":73,"date":"2008-05-17T23:36:19","date_gmt":"2008-05-18T05:36:19","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/2008\/05\/17\/updated-autotest\/"},"modified":"2008-05-17T23:36:19","modified_gmt":"2008-05-18T05:36:19","slug":"updated-autotest","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2008\/05\/17\/updated-autotest\/","title":{"rendered":"Updated .autotest"},"content":{"rendered":"<p>I just brought a new project into the world of <a href=\"http:\/\/nubyonrails.com\/articles\/autotest-rails\">autotest<\/a>. I&#8217;m not using the <a href=\"http:\/\/rails.aizatto.com\/category\/autotest\/\">Leopard FSEvents &#8220;fix&#8221;<\/a> because it&#8217;s not necessary (note the sleep and add_exception calls below). I am using the fun and helpful <a href=\"http:\/\/www.fozworks.com\/2007\/7\/28\/autotest-sound-effects\">sound plugin<\/a>, but not the <a href=\"http:\/\/www.metaskills.net\/2008\/4\/6\/autotest-playlist-for-red-green-feedback\">playlist version of that plugin<\/a>. Here&#8217;s my .autotest file.<br \/>\n<!--more--><\/p>\n<pre>\r\nAutotest.add_hook :initialize do |autotest|\r\n    autotest.sleep=3\r\n    autotest.add_exception(\/\\\\\/\\.git\\\\\/\/)\r\nend\r\n\r\nrequire '\/Users\/jamieflournoy\/autotest\/sound\/sound'\r\nAutotest::Sound.sound_app = '\/opt\/local\/bin\/mpg321'\r\nAutotest::Sound.sound_path = \"\/Users\/jamieflournoy\/autotest\/sound\/sound_fx\/\"\r\n<\/pre>\n<p>Note that the sound plugin needs a patch:<\/p>\n<pre>\r\n29c29\r\n<   [:run, :red, :green, :quit, :run_command, :ran_command].each do |hook|\r\n---\r\n>   [:initialize, :red, :green, :quit, :run_command, :ran_command].each do |hook|\r\n<\/pre>\n<p>You&#8217;ll also need to make sure your sound set has an initialize.mp3 instead of a run.mp3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just brought a new project into the world of autotest. I&#8217;m not using the Leopard FSEvents &#8220;fix&#8221; because it&#8217;s not necessary (note the sleep and add_exception calls below). I am using the fun and helpful sound plugin, but not the playlist version of that plugin. Here&#8217;s my .autotest file.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,26,20,30,9],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-mac","category-ruby","category-ruby-on-rails","category-testing","category-tools"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/73"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}