1. å®è·µJUnit xUnitTestPatternsããå¦ã¶ã¦ããããã¹ã 2012.06.16 OSC 2012 åæµ·é Shuji Watanabe (@shuji_w6e) 1
ã¢ã¸ã£ã¤ã«éçºã«åãçµããã¼ã åãã®ã³ã¼ãã³ã°ããæè¡é¡§åãèªå®ã¹ã¯ã©ã ãã¹ã¿ã¼ç ä¿®ãªã©ã®å種ãã¬ã¼ãã³ã°ãæä¾ãã¦ãã¾ãããã²ãæ°è»½ã«ãç¸è«ãã ããï¼ååç¸è«ç¡æï¼ ã¿ãªããããã«ã¡ã¯ã@ryuzeeã§ãã åããã£ã¦ããæ¡ä»¶(PHP)ã¯ãã¨ãã¨ãã¹ãã³ã¼ãã®ãªãã¬ã¬ã·ã¼ãªããã¸ã§ã¯ãã§ããããæ¹åããããã«ãã£ã¨åä½ã確èªããããã®çµåã¬ãã«ã®èªåãã¹ããå¢ããã¦ãã¾ããã ãããªä¸ã§ãåã®ã¨ããã§ã¯ã©ããã£ã¦ãã¹ãç¨ã®fixtureã管çãã¦ãããäºä¾ã¨ãã¦ç´¹ä»ãããã¨æãã¾ãã æåã«ã³ã¢ã¨ãªãfixtureãç¨æããã¿ããªããããããã¹ããä½ãåã«ã³ã¢ã¨ãªããã¹ãç¨ã®fixtureã¯ç¨æãã¦ããã¾ãã ãããªãã¨ãã¿ããªã好ãåæã«fixtureãä½ã£ã¦ãã¾ãããã£ã¨ããéã«æ··ä¹±ã«é¥ãã¾ãã ããã°ã©ã æ¬ä½ã¨åæ§ã«ãDRYã®ååã§ãåããããªãã¹ããã¼ã¿ãç¹°ãè¿ãä½ã£ã¦ãã¾ããã
Leave end-to-end testing to Capybara. Capybara is a web testing tool that simulates user interactions with a website. It allows automating browser interactions for scenarios and features using domain-specific languages like Cucumber. Capybara supports using different drivers like Selenium for JavaScript interactions and HtmlUnit for non-JavaScript sites. Specifying the driver and JavaScript suppor
rubyã«ããããã¹ãã®æ¹æ³ã¨ãä¸åç¥ããã®ã§ã調ã¹ã¦ããã¡ã«é¢ç½ãããªã®ãè¦ã¤ãããã®ã§ãã£ã¦ã¿ããã ãã£ã¯ã¹ãã£ã¨ããè¨èã®å®ç¾©ãèªåã®ç¥ã£ã¦ãã®ã¨ã¯éã£ã¦ããã¨ã«ãããã¹ãã¬ã¼ã¸ã«ãã¼ã¿ãä¿åããã¨ãã®ãã¹ãææ³ã¿ãããªã true/falseãè¿ãã¡ã½ããã¨ããå¤ãè¿ãã¡ã½ãããªãç°¡åã«ãã¹ãã§ããããããããªæ§é ã®ãã¼ã¿ãä¿åã§ãããã£ã¦ã¡ã½ããã®ãã¹ãã¯ã¹ãã¬ã¼ã¸ä½¿ããªãã¨åºæ¥ãªãã®ã§ããã¹ããã¼ã¿ä½ã£ããä¿åãããã¨ã ã§ããã¹ããã¼ã¿ãç¨æããã®ã ãã©ããããyamlã§æ¸ãã®ãé¢åã ããrubyã®ãã¼ã¿æ§é ã§æ¸ãããã¨ããã®ãFactory Girlãããã 解説ãã¦ããµã¤ããè¦ãªãããã£ã¦ã¿ããã»ã¼ãã®ã¾ã¾ãæå¾ã«ãªã³ã¯å¼µã£ã¨ãã®ã§ããã£ã¡ãè¦ãæ¹ãåãããããã¨æããï¼ è²ã ã¨çç¥ããã¦ãåæããã£ãã®ã§ãè£å®ãã¤ã¤ã¡ã¢ãrails使ãã«ã¯æ¸ããªãã¦ãåããäºãªãã ã
â 1 第ï¼å Rubyãã¸ãã¹ã»ããã¼:ããµã¤ãã®Ruby on Railsã®ãã¹ãã£ã³ã°ç°å¢ã æ¨æ¥åç¥ãããã¤ãç¡äºçµãã¾ããããæ¥å ´ããã ããçãã¾ããããã¨ããããã¾ãããä¸æ¹çã«è¬æ¼ããã ããããªãã¦ã質åããããããã¦ããã ãã¦æããã¾ãããã¡ã¤ã·ã¼ã®ä¸ã®äººãã¡ :)ã¨ä¼ããã®ãããã£ãããã£ãªã§æ¥ã¦ãããããªããªã¬ã大æ±æ¸Rubyä¼è°01ã¯ãã£ãªã§è¡ããã å½æ¥ã®èæ¯ç»åéã§ã: Testing Environment of Ruby on RailsView more presentations from Shintaro Kakutani. 話ãå 容ã¯ãã£ã¨åããªãã¨ãããªãã£ããå¼ãç¶ãç²¾é²ãéãã¦ããããããã¬ã¤ã³ã¹ãã¼ãã³ã°ã«ãä»ãåãããã ããã@:haru01,Asakusa.rbã¡ã³ãã¼ã®çãããããã¨ããããã¾ããã 以ä¸ãè¬æ¼ã§ã¢ãã¦ã³ã¹ãããã¨ãã¡ãã§ã
åç° å人(@t_wada) ä½ãRSpec ã®å ¥éã¨ãã®ä¸æ©å ã¸ãã¯ã¯ãªã¨ã¤ãã£ãã»ã³ã¢ã³ãº 表示 - ç¶æ¿ 4.0 å½é ã©ã¤ã»ã³ã¹ã§æä¾ããã¦ãã¾ãã æ±äº¬ Ruby ä¼è° 03 ã® RSpec ã¯ã¼ã¯ã·ã§ããã®è³æã§ãããã®ã¯ã¼ã¯ã·ã§ããã§ã¯åå è ã®æ¹ã«ãåçµã(ã³ã¼ããæ¸ãåããã¨)ããã¦è²°ããTDD/BDD 㨠RSpec ãåæã«å¦ã¹ãããã«é½åº¦èª¬æãå ¥ããããã¡ã§è¡ãã¾ããã 第2ã¤ãã¬ã¼ã·ã§ã³ãæ¸ãã¾ãããç¶ãã«èå³ããæ¹ã¯ã覧ä¸ãã (æ´æ°) 第3ã¤ãã¬ã¼ã·ã§ã³ãæ¸ãã¾ãããç¶ãã«èå³ããæ¹ã¯ã覧ä¸ãã 1st iteration favotter ã® ã¿ãã㪠NG ã¯ã¼ãã®ãã£ã«ã¿ãªã³ã°æ©è½ã RSpec ã§ä½ãã¾ããããã¾ã㯠NG ã¯ã¼ãã®æ¤åºæ©è½ãä½æãã¾ãã ãã®ã¤ãã¬ã¼ã·ã§ã³ã§ã¯æåãã¿ãªå½¢ã®ãã¹ãã³ã¼ãã¨å®è£ ãæ¸ããã ãã ãã¨ãã®ã³ã¼ããæ´ç·´ããã¦ããã¾
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}