{"id":5460,"date":"2011-03-30T17:47:48","date_gmt":"2011-03-30T09:47:48","guid":{"rendered":"http:\/\/ihower.tw\/blog\/?p=5460"},"modified":"2011-04-09T01:44:57","modified_gmt":"2011-04-08T17:44:57","slug":"watchr-continuous-testing","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/5460-watchr-continuous-testing","title":{"rendered":"Watchr \u4e0d\u53ea\u662f Continuous Testing"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/mynyml\/watchr\">Watchr<\/a> \u662f\u4e00\u500b\u53ef\u4ee5\u76e3\u8996\u6a94\u6848\u8b8a\u52d5\uff0c\u7136\u5f8c\u81ea\u52d5\u57f7\u884c\u7279\u5b9a\u52d5\u4f5c\u7684\u5de5\u5177\u3002 <a href=\"\/blog\/archives\/5285\">\u6211\u7684 Rails3 App Template (+JQuery+RSpec+Watchr)<\/a> \u4e00\u6587\u4e2d\u63d0\u5230\u5b83\u6700\u5e38\u898b\u7684\u7528\u9014\u5c31\u662f\u7528\u4f86\u505a <a href=\"http:\/\/blog.objectmentor.com\/articles\/2007\/09\/20\/continuous-testing-explained\">Continuous Testing<\/a>\uff0c\u53ea\u8981\u6a94\u6848\u4e00\u5b58\u6a94\uff0c\u5c31\u81ea\u52d5\u57f7\u884c\u5c0d\u61c9\u7684\u6e2c\u8a66\u3002\u4f46\u662f\u5b83\u4e5f\u53ef\u4ee5\u6709\u5176\u4ed6\u7528\u9014\uff0c\u5c31\u770b\u4f60\u600e\u9ebc\u767c\u63ee\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u5c31\u62ff\u4f86\u5beb\u66f8\u3002\u6211\u7684 <a href=\"\/rails3\">Rails3 \u4e00\u66f8<\/a> \u662f\u7528 <a href=\"http:\/\/jekyllrb.com\/\">Jekyll<\/a> \u642d\u914d <a href=\"http:\/\/daringfireball.net\/projects\/markdown\/\">Markdown<\/a> \u8a9e\u6cd5\u5beb\u7684\u3002\u56e0\u6b64\u6bcf\u6b21\u6a94\u6848\u7de8\u8f2f\u5b8c\uff0c\u90fd\u5fc5\u9808\u57f7\u884c jekyll \u6307\u4ee4\u624d\u6703\u7522\u751f HTML\uff0c\u63a5\u8457\u9084\u5f97\u91cd\u65b0\u6574\u7406\u4e00\u4e0b\u700f\u89bd\u5668\u624d\u6703\u770b\u5230\u6700\u5f8c\u7684\u7d50\u679c :(<\/p>\n<p>\u900f\u904e <a href=\"https:\/\/github.com\/mynyml\/watchr\">watchr<\/a> \u548c <a href=\"https:\/\/github.com\/logankoester\/autorefresh\">autorefresh<\/a>\uff0c\u6211\u5c31\u53ef\u4ee5\u9054\u6210\u7576\u6211\u4fee\u6539\u5b8c\u5b58\u6a94\uff0c\u5c31\u6703\u81ea\u52d5\u57f7\u884c jekyll \u7522\u751f HTML\uff0c\u4e26\u4e14\u91cd\u65b0\u6574\u7406\u700f\u89bd\u5668\u9801\u9762\u3002\u975e\u5e38\u597d\u7528\u3002\u7528 watchr \u57f7\u884c\u4ee5\u4e0b\u7684 script \u5c31\u6703\u76e3\u8996\u76ee\u9304\u4e0b\u7684 .markdown \u6a94\u6848\uff0c\u4e00\u6709\u8b8a\u66f4\u5c31\u57f7\u884c jekyll \u548c autorefresh\u3002<\/p>\n<pre>\r\n<code>\r\nwatch('.*\\.markdown') do |md|\r\n  puts \"#{md} is updated!\"\r\n  \r\n  system(\"jekyll\")\r\n  system('autorefresh rails3book')\r\nend\r\n<\/code>\r\n<\/pre>\n<p>\u4e5f\u6709\u4eba\u7528 Watchr \u4f86 <a href=\"http:\/\/www.rubyinside.com\/watchr-more-than-an-automated-test-runner-4590.html\">\u81ea\u52d5\u4e0a\u50b3 templates \u6a94\u6848\u5230 Shopify<\/a>\u3002<\/p>\n<p>\u5404\u4f4d\u8b80\u8005\u9084\u6709\u4ec0\u9ebc\u61c9\u7528\u55ce? \u6b61\u8fce\u5206\u4eab\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watchr \u662f\u4e00\u500b\u53ef\u4ee5\u76e3\u8996\u6a94\u6848\u8b8a\u52d5\uff0c\u7136\u5f8c\u81ea\u52d5\u57f7\u884c\u7279\u5b9a\u52d5\u4f5c\u7684\u5de5\u5177\u3002 \u6211\u7684 Rails3 App Templat &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/5460-watchr-continuous-testing\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008Watchr \u4e0d\u53ea\u662f Continuous Testing\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[31],"tags":[],"class_list":["post-5460","post","type-post","status-publish","format-standard","hentry","category-ruby","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-1q4","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/comments?post=5460"}],"version-history":[{"count":15,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5460\/revisions"}],"predecessor-version":[{"id":5502,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5460\/revisions\/5502"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=5460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=5460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=5460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}