E2Eãã¬ã¼ã ã¯ã¼ã¯ã触ã£ã¦ãç¹å¾´ãç´¹ä»ãã
ããã«ã¡ã¯ã@nazomikanã§ãã ãã®è¨äºã¯LIFULL Advent Calender2017 ãã®2ã®3æ¥ç®ã®è¨äºã§ãã æ¨å¹´ã®Advent Calenderã§selenium-webdriver(node)ã®api翻訳è¨äºãæ¸ãã¾ãããããã®å½æ対象ã¨ãã¦ã2ç³»ããç¾å¨ã¯ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ãããæãã§è²ã ã¨ç¾ç¶ãå¤ãã£ã¦ãã¦ãã®ã§ãã®è¾ºã®è©±ããã¾ãã ãã¼ã«ã«ã¢ã¼ãã§ã®ãã¹ãæã«selenium standaloneãµã¼ããä¸è¦ã« v2.43ã®ãã§ã³ã¸ã»ããã§FireFoxã®ãã¤ãã£ããµãã¼ãã追å ããã¦ãremoteã§ã®å®è¡æãé¤ãã¦ãµãã¼ã対象ã®å ¨ã¦ã®ãã©ã¦ã¶ãstandaloneãµã¼ããªãã§å®è¡ã§ããããã«ãªãã¾ããã (chrome/phantomjsã®ãã¤ãã£ããµãã¼ãã¯2.34) â»ã®ã¡ã«phantomjsã¨operaã®ãµãã¼ãã¯åããã â»ãã®å½æãµãã¼ã対象ã§
Ruby on Railsã®ã¢ããªã±ã¼ã·ã§ã³ã§ãCapybaraã + RSpecç°å¢ã§ãããã¬ã¹Chromeã使ã£ã¦E2E(ã¨ã³ããã¼ã¨ã³ã)ã®ãã©ã¦ã¶ãã¹ããããããã®æé ã§ããã¤ãã§ã«Capybaraã®ãã¼ãã·ã¼ãã¨ãRSpec以å¤ã§Capybaraã使ãæé ãæ¸ãã¦ããã¾ãã
Speee ã¨ã³ã¸ãã¢çµç¹æ¨é²å®¤ã®æé¨ (yhatt) ã§ãã ã¿ãªãã E2E ãã¹ãããã¦ãã¾ãã§ãããããå¼ç¤¾ã® Ruby on Rails ãããã¯ãã«ããã¦ã¯ãRSpecãCapybaraã Poltergeist ãçµã¿åããã feature spec 㧠E2E ãã¹ããè¡ãæ§æãä¸è¬çã§ããã ãããªä¸ãChrome 59 ã« ãããã¬ã¹ã¢ã¼ã (--headless) ãæè¼ ããããã¨ã§ããã¹ãã CI ç°å¢ã«ããã¦ãææ°ã® Chrome ç°å¢ã«ãã E2E ãã¹ããå®æ½ã§ããããã«ãªãã¾ãããããã«åããã¦ãPhantomJS ã®ã³ã¢ã¡ã³ããã¼ãã¡ã³ããã¼ãéãã ãã¨ãçºè¡¨ããPhantomJS ã®ã¢ãããã¼ãããç¶ç¶çãµãã¼ãã¯æå¾ ã§ããªãç¶æ³ã¨ãªã£ã¦ãã¾ãã ãããã¬ã¹ Chrome ãã¨ã¯ãã  | Web  | Google Developers [A
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}