{"id":5983,"date":"2011-07-17T23:52:03","date_gmt":"2011-07-17T15:52:03","guid":{"rendered":"http:\/\/ihower.tw\/blog\/?p=5983"},"modified":"2015-12-01T16:19:41","modified_gmt":"2015-12-01T08:19:41","slug":"bdd-style-unit-testing-video-and-slidesrubykaigi-2011","status":"publish","type":"post","link":"https:\/\/ihower.tw\/blog\/5983-bdd-style-unit-testing-video-and-slidesrubykaigi-2011","title":{"rendered":"BDD style unit testing video and slides@RubyKaigi 2011"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"\/\/www.slideshare.net\/slideshow\/embed_code\/key\/9l3lng54KAjpZl\" width=\"595\" height=\"485\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border:1px solid #CCC; border-width:1px; margin-bottom:5px; max-width: 100%;\" allowfullscreen> <\/iframe><\/p>\n<div style=\"margin-bottom:5px\"> <strong> <a href=\"\/\/www.slideshare.net\/ihower\/bdd-style-unit-testing\" title=\"BDD style Unit Testing\" target=\"_blank\">BDD style Unit Testing<\/a> <\/strong> from <strong><a href=\"\/\/www.slideshare.net\/ihower\" target=\"_blank\">Wen-Tien Chang<\/a><\/strong> <\/div>\n<ul>\n<li><a href=\"http:\/\/www.ustream.tv\/recorded\/16053943\">[Video recording]<\/a><\/li>\n<li><a href=\"http:\/\/gihyo.jp\/news\/report\/01\/rubykaigi2011\/0002?page=3\">Ruby\u4f1a\u8b702011 2\u65e5\u76ee\u30ec\u30dd\u30fc\u30c8<\/a> (\u65e5\u6587\u5831\u5c0e)<\/li>\n<\/ul>\n<p>This is my slides and video recording at <a href=\"http:\/\/rubykaigi.org\/2011\/en\/schedule\/details\/17M05\">RubyKaigi 2011<\/a> (with speaker\u2019s note every page). It\u2019s my first English presentation and the time is 30mins, so I only talk about the core value of BDD, basic BDD style syntax, why the syntax matters and some BDD caveats you should know and think.<\/p>\n<p>I\u2019m such nervous and may speak too quickly (only use 25 mins). I asked all attendees and found surprisingly more than half attendees do unit testing and RSpec, which means most attendees already knows unit testing and RSpec. Great! Now I\u2019m afraid of my talk will be too easy :P Anyway, hope this talk can help you realize why we do BDD unit testing and not only because RSpec\u2019s awesome syntax.<\/p>\n<p>BTW, If you\u2019re interested in more RSpec syntax, you can checkout <a href=\"http:\/\/ihower.tw\/blog\/archives\/5438\">my RSpec talk<\/a> at OSDC.TW.<\/p>\n<p>\u9019\u662f\u6211\u5728\u65e5\u672c <a href=\"http:\/\/rubykaigi.org\/2011\/en\/schedule\/details\/17M05\">RubyKaigi 2011<\/a> \u7684\u6f14\u8b1b\u9304\u5f71\u8ddf\u6295\u5f71\u7247(\u5305\u62ec\u8b1b\u7a3f)\uff0c\u56e0\u70ba\u662f\u7b2c\u4e00\u6b21\u7528\u82f1\u6587\u6f14\u8b1b\uff0c\u52a0\u4e0a\u6642\u9593\u53ea\u6709\u4e09\u5341\u5206\u9418\uff0c\u6240\u4ee5\u6211\u53ea\u8b1b\u4e86BDD\u6700\u91cd\u8981\u7684\u6838\u5fc3\u6982\u5ff5\u3001\u6700\u57fa\u672c\u7684 BDD \u98a8\u683c\u8a9e\u6cd5\u3001\u70ba\u4f55 Syntax \u6703\u5f71\u97ff\u4f60\u601d\u8003\u4ee5\u53ca\u4e00\u4e9b\u4f60\u61c9\u8a72\u8981\u77e5\u9053\u53ca\u601d\u8003\u7684 BDD \u526f\u4f5c\u7528\u3002<\/p>\n<p>\u56e0\u70ba\u7528\u82f1\u6587\u8b1b\u592a\u7dca\u5f35\u4e86\uff0c\u6240\u4ee5\u4e00\u958b\u59cb\u8b1b\u7684\u597d\u50cf\u592a\u5feb\u4e86\uff0c\u5c0e\u81f4\u53ea\u82b1\u4e8625\u5206\u9418\uff0c\u9084\u7559\u4e865\u5206\u9418\u6c92\u7528\u5b8c\u3002\u958b\u8b1b\u524d\u9084\u554f\u4e86\u807d\u773e\u6709\u591a\u5c11\u4eba\u6709\u505a\u55ae\u5143\u6e2c\u8a66\uff0c\u610f\u5916\u767c\u73fe\u8d85\u904e\u4e00\u534a\u4ee5\u4e0a\u8209\u624b\uff0c\u800c\u4e14\u5927\u90e8\u5206\u90fd\u662f\u4f7f\u7528 RSpec\u3002\u771f\u662f\u592a\u68d2\u4e86\uff0c\u8b93\u6211\u5fc3\u5e95\u99ac\u4e0aos\u90a3\u6211\u9084\u9700\u8981\u8b1b\u55ce? XD \u7121\u8ad6\u5982\u4f55\uff0c\u5e0c\u671b\u9019\u6f14\u8b1b\u9084\u662f\u53ef\u4ee5\u8b93\u4f60\u4e86\u89e3\u5230 BDD \u55ae\u5143\u6e2c\u8a66\u7684\u6838\u5fc3\u50f9\u503c\uff0c\u800c\u4e0d\u53ea\u662f\u56e0\u70ba RSpec \u7684 awesome \u8a9e\u6cd5\u800c\u5df2\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709\u8208\u8da3\u770b\u66f4\u591a RSpec\uff0c\u53ef\u4ee5\u53c3\u8003\u6211\u4e4b\u524d\u5728 OSDC.TW \u7684 <a href=\"http:\/\/ihower.tw\/blog\/archives\/5438\">RSpec<\/a> \u6f14\u8b1b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BDD style Unit Testing from Wen-Tien Chang [Video recor &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ihower.tw\/blog\/5983-bdd-style-unit-testing-video-and-slidesrubykaigi-2011\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008BDD style unit testing video and slides@RubyKaigi 2011\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-5983","post","type-post","status-publish","format-standard","hentry","category-ruby","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1q6tG-1yv","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5983","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=5983"}],"version-history":[{"count":9,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5983\/revisions"}],"predecessor-version":[{"id":8389,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/posts\/5983\/revisions\/8389"}],"wp:attachment":[{"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/media?parent=5983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/categories?post=5983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ihower.tw\/blog\/wp-json\/wp\/v2\/tags?post=5983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}