{"id":402,"date":"2007-06-27T23:45:29","date_gmt":"2007-06-27T14:45:29","guid":{"rendered":"http:\/\/ecpplus.net\/weblog\/?p=402"},"modified":"2020-06-15T22:22:10","modified_gmt":"2020-06-15T13:22:10","slug":"rails%e3%81%a7autotest%e3%81%aa%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/rails%e3%81%a7autotest%e3%81%aa%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83\/","title":{"rendered":"Rails\u3067autotest\u306a\u958b\u767a\u74b0\u5883"},"content":{"rendered":"<p>\u6700\u8fd1\u306eRails\u958b\u767a\u74b0\u5883\u306f\u3001Vim\u3068autotest\u3067\u66f8\u3044\u3066\u308b\u3002\u74b0\u5883\u69cb\u7bc9\u65b9\u6cd5\u306e\u30e1\u30e2\u3002<\/p>\n<pre># gem install redgreen zentest diff-lcs<\/pre>\n<p>\u3000redgreen \u3092\u5165\u308c\u308b\u3068\u3001\u30c6\u30b9\u30c8\u306e\u6210\u529f\u3092\u7dd1\u8272\u3067\u3001\u5931\u6557\u3092\u8d64\u8272\u3067\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u3002\u3069\u3046\u3067\u3082\u3044\u3044\u3088\u3046\u3060\u3051\u3069\u3001autotest \u3092\u5165\u308c\u308b\u3068\u3059\u3054\u304f\u5927\u4e8b\u3002<\/p>\n<p>\u3000autotest \u306f\u3001~\/.autotest \u3082\u3057\u304f\u306f\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e autotest \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001\u305d\u308c\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u3082\u306e\u3089\u3057\u3044\u3002<a href=\"http:\/\/subtech.g.hatena.ne.jp\/secondlife\/20061107\/1162826406\">autotest\u3067\u3057\u3087\u3067\u3057\u3087\uff1f<\/a> \u306e\u8a18\u4e8b\u306e\u30bd\u30fc\u30b9\u3092\u9802\u3044\u3066 ~\/.autotest \u306b\u7f6e\u3044\u3066\u3044\u308b\u3002\u3059\u3053\u3076\u308b\u3044\u3044\u611f\u3058\uff01<\/p>\n<p>\u3000\u3053\u308c\u3067\u3001screen \u3067\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u5206\u5272\u3057\u3066\u7247\u5074\u3067 autotest \u3092\u52d5\u304b\u3057\u3066\u958b\u767a\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u3068\u3001\u305d\u308c\u306b\u95a2\u9023\u3059\u308b\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3057\u3066\u304f\u308c\u308b\u3002\u3053\u3053\u3067\u3001\u3055\u3063\u304d\u306e redgreen \u304c\u3059\u3054\u3044\u5a01\u529b\u3092\u767a\u63ee\u3059\u308b\u3002\u3044\u3064\u3082\u3001\u30c7\u30e5\u30a2\u30eb\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u74b0\u5883\u3067\u66f8\u3044\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u5b9f\u969b\u306b\u30a8\u30c7\u30a3\u30bf\u306f\u7247\u5074\u306b\u3042\u308b\u3060\u3051\u3002\u4ed6\u65b9\u3067\u306f\u3001autotest \u304c\u3072\u305f\u3059\u3089\u30c6\u30b9\u30c8\u3092\u884c\u3063\u3066\u308b\u3002\u30a8\u30c7\u30a3\u30bf\u753b\u9762\u3057\u304b\u898b\u3066\u306a\u304f\u3066\u3082\u3001redgreen \u3067\u8272\u304c\u3064\u304f\u3068\u3001\u4f55\u306e\u30c6\u30b9\u30c8\u304b\u306f\u5206\u304b\u3089\u306a\u3044\u3051\u3069\u901a\u3063\u305f\u304b\u901a\u3063\u3066\u306a\u3044\u304b\u304c\u898b\u306a\u304f\u3066\u3082\u76ee\u306b\u5165\u3063\u3066\u304f\u308b\u3002<\/p>\n<p>\u3000TDD\u3067\u66f8\u3044\u3066\u308b\u306e\u3067\u3001\u521d\u3081\u30c6\u30b9\u30c8\u901a\u3089\u306a\u304f\u3066\u66f8\u304d\u7d42\u3048\u308b\u3068\u30c6\u30b9\u30c8\u901a\u308b\u308f\u3051\u3060\u3051\u3069\u3001\u305d\u308c\u306f\u5f53\u7136\u3002\u305f\u307e\u306b\u3001\u5909\u306a\u5909\u66f4\u3057\u3066\u30c6\u30b9\u30c8\u901a\u3089\u306a\u304f\u306a\u3063\u3061\u3083\u3063\u305f\u3068\u304d\u3068\u304b\u3001autotest \u306e\u304a\u304b\u3052\u3067\u3059\u3050\u6c17\u3065\u304f\u3002\u623b\u308a\u306f\u304b\u306a\u308a\u6e1b\u3063\u3066\u307e\u3059\u3002<\/p>\n<p>\u3000\u3069\u3053\u3067\u898b\u639b\u3051\u305f\u304b\u5fd8\u308c\u305f\u3051\u3069\u3001\u3044\u3064\u3082\u306f screen \u306e\u7247\u5074\u3067<\/p>\n<pre>$ tail -f log\/development.log & autotest<\/pre>\n<p>\u3068\u3057\u3066\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u3068\u304d\u306f\u3072\u305f\u3059\u3089\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3044\u308b\u3068\u304d\u306f\u5ef6\u3005\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3082PC\u306e\u30b9\u30da\u30c3\u30af\u304c\u3042\u304c\u3063\u305f\u304a\u304b\u3052\u3067\u3059\u306d\uff08\u00b4\u2200\uff40\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u306eRails\u958b\u767a\u74b0\u5883\u306f\u3001Vim\u3068autotest\u3067\u66f8\u3044\u3066\u308b\u3002\u74b0\u5883\u69cb\u7bc9\u65b9\u6cd5\u306e\u30e1\u30e2\u3002 # gem install redgreen zentest diff-lcs \u3000redgreen \u3092\u5165\u308c\u308b\u3068\u3001\u30c6\u30b9\u30c8\u306e\u6210\u529f\u3092\u7dd1\u8272\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[10],"class_list":["post-402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":2,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":2572,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/402\/revisions\/2572"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/2521"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}