è¤æ°ã®ãã©ãããã©ã¼ã ã§ã®ãã©ã¦ã¶ãã¹ããã§ããSaucelabsã使ãã¨ãã¯ãã¹ãã©ã¦ã¶ãã¹ãã§æ¥½ãã§ãããã Capybaraã§E2Eã®ãã¹ããä½æããå¿ è¦ããã£ãã®ã§ããããã«ããã©ãããã©ã¼ã ã®ã¯ãã¹ãã©ã¦ã¶ãã¹ããããæ¹ãè¯ãããã ã£ãã®ã§Saucelabsã使ã£ã¦ã¿ããçµæ§è¯ãããã ã£ãã Saucelabsãå©ç¨ãããã¨ã§è±å¯ãªãã©ãããã©ã¼ã ã¨ãã©ã¦ã¶ã§ã®ãã¹ããã§ãã¦ãå®è¡æã®è©³ç´°ãªãã°ã確èªã§ããã ãã§ãªãããã¹ãã®å®è¡æã®æ§åããªã³ããã³ãã§ãscreenshotsãscreencastsã§ç¢ºèªã§ããã ãã®è¾ºã®ç°å¢ãèªåã§æ§ç¯ããããæéãè©ä»£ããã§ããã ç¡æã¢ã«ã¦ã³ãã ã¨å©ç¨ã§ããVMã®æ°ããã¹ãã§ããæéã«å¶éã¯ãããã®ã®ããã以ä¸ã«æ©æµã¯å¤§ããããããã ç°¡åã«ã»ããã¢ãããã¡ã¢ãããã®ã Gemfileã«ä»¥ä¸ã®gemã追å sauce-connectã使ç¨
We have a race condition between click_link and reload_page. Sometimes the AJAX call will go through before Capybara reloads the page, and sometimes it wonât. This kind of nondeterministic test can be very difficult to debug, so I added a little helper. Capybaraâs Little Helper Hereâs the helper, via Coderwall: # spec/support/wait_for_ajax.rb module WaitForAjax def wait_for_ajax Timeout.timeout(Ca
ã¿ãªãã¾ãããããä»å¹´ã® 2/3 ãçµããä»æ¥ãã®é ãããã並åã«ãéããã§ããããã ç§ãå¿«é©ã«ä¸¦åãçãã¦ããããã«ãä»å parallel_tests ãã test-queue ã«ä¹ãæãããã¨ããæ°æã¡ã«ãªã£ãã¨ãããã¨ããå ±åè´ãã¾ãã çµç·¯ ç¾å¨ãPHP ã® Web ã¢ããªã±ã¼ã·ã§ã³ã capybara + turnip ã§ãã¹ããããä»äºããã¦ããã æè¿ããããå¯è±ªãª Docker ãã¹ãç°å¢ã«è§¦ããããã«ãªã£ãã¨ãããã¨ããã£ã¦ã 以å試ãã Selenium Grid + Docker ã§ããããé«éåã«å¤ããã§ãã¾ãã ãããªãããªã§ RSpec ã®åæ並åå®è¡ãããªãã¨ããã¨ãããã¨ã§ã以åãã触ã£ã¦ãã parallel_tests ãå°å ¥ãã¾ããã ããã¾ã§ã¯å ¨ãã¹ãã®å®äºã¾ã§ ç´40å ããã£ã¦ãã¾ããããparallel_tests ãå°å ¥ããã ã㧠ç´1
2013-06-02 ãã¹ãã parallel_tests ã®2å以ä¸é«éã«ãã Qspec ruby rails qspec ãã¹ããé ãã®ã§ parallel_tests ã§é«éåãããã¨ããããå¹çããããã¦è ¹ããã£ã¦ããã®ã§ããå¹çç㪠Qspec ãã¤ãã£ãã ããã¤ãã® rails ããã¸ã§ã¯ãã§ãã³ããã¼ã¯ããã¨ããã2å以ä¸ã®é«éåå¹æãå¾ãããã é«éåã«è²¢ç®ãã¦ããã®ã¯æ¬¡ã®è¦ç´ ã ãã¹ããã¡ã¤ã«ã®ãµãããã Redis ä¸ã® Queue ãã¤ãã£ã¦åçã«ãããªãã Spork ã§ãã¹ã¦ã®ãã¹ãå®è¡ããã»ã¹ãäºåã«èµ·åãã GC ãåã(ãã¡ã¤ã«ãã¨ã«æå¹ã«ãã¦æ示çã«GCããã®ã§ãååãªã¡ã¢ãªãããã°ããã¦ãåé¡ãªãåä½ãããcapybara ç³»ãã¤ããã¨ãã¶ãªã) ãã¦ã³ãã¼ã & ã¤ã³ã¹ãã¼ã«: tomykaira/qspec · GitHub ãããã㯠#ru
I have an app running on Rails 4 / Ruby 2. The frontend is being developed with Ember. When running rake spec, I'm getting the below exception. It seems to only happen in Rspec feature specs (not in dev mode). Also, it usually only happens if I run just the one feature spec; if I run the entire test suite, I don't usually get the error. The error is occurring because of this commit to Rails: https
Two steps for faster browser specs March 11, 2013Posted by Tom Meier Keeping specs fast is a never ending battle for the average Rails developer. There are 2 quick lines of javascript that can make excellent and stable improvements to spec speed performance. Most people are aware of JQuery giving the option to disable animations (see â fx.off), we can disable this in test mode making all browser b
ä¹ ã ã«ããã°æ¸ãã ä½æ°ãªãbundle updateããããcapybaraã2.1.0ã«ãªã£ã¦ã¦ããã¹ããè½ã¡ãããã«ãªã£ãã ã¾ãæåãå¤ãã£ããããã®ã§ãã°ã°ã£ã¦ç¢ºèªãã¦ã¿ãã Introducing Capybara 2.1ãåç §ããã¨å¤§ä½åãããã©ãä¸å¿æ¥æ¬èªã§ãã£ããæ¸ãã¦ããã ã»ã¬ã¯ã¿ã«ãããããã®å³å¯æ§ãå¤æ´ã«ãªã£ã capybara2.0ãããfindã¡ã½ããã§DOMãæ¢ããæã«è¤æ°ãããããã¨ä¾å¤ãåãããã«ãªã£ããã 2.1.0ããã¯ãããã³ã°ã®ã«ã¼ã«ãconfigureã§æå®ã§ããããã«ãªã£ãã Capybara.configure do |config| config.match = :prefer_exact end ãããã³ã°ã®ç¨®é¡ã¯ä»¥ä¸ã®å㤠:one :first :prefer_exact :smart :one 2.0ã¨åãã«ã¼ã«ãè¤æ°ãããããã¨
å æ¥ãªãªã¼ã¹ãã èããã¼ã¯ ã§ã¯End-to-Endãã¹ãã«ã¯ Request Spec ã使ã£ã¦ãã¾ããããã¹ã(RSpec)ãæ¸ãã«ã¯ Capybara DSL (API) ã®ç¥èãå¿ è¦ã«ãªãã¾ãã èããã¼ã¯ ã® Request Spec ãæ¸ãéã«åç §ããæ å ±ããµã³ãã«ãã¾ã¨ãã¦ããã¾ãã Capybara DSL æ å ± Capybaraæ¬å®¶ ä¸ç¨ããã® The DSL ã«åºæ¬çãªä½¿ãæ¹ã®ä¾ã並ãã§ãã¾ãã®ã§ãCapybara ã使ãéã«ã¯ã¾ããããèªã¿ã¾ããã Richard Conroy's Personal Blog: Capybara Reference DSLä¸è¦§ãã¾ã¨ã¾ã¨ãããã¦ãã¦ãã³ã¼ããæ¸ãã®ã«ä¾¿å©ã§ãã Module: Capybara Capybaraã®RDocã§ããDSLã«ã¯æç¨ãªãªãã·ã§ã³ãç¨æããã¦ã¾ãããã®ãªãã·ã§ã³ã解ãã¾ãã ãã ããæ £ããªãã¨èª¿
ãã®ãã®ã¨ã³ããªãä½åº¦ç®ã«ãªãããããã¾ãããã å®éã«ä½¿ã£ã¦ãã¦ãããã ï¼ãã¨ããç°å¢ãããç¨åº¦ç¢ºç«ã§ããæ°ãããã®ã§ ä¸æ¦ããã«ã¾ã¨ãã¦ããã¾ããRuby1.9.3ãRails3.2.2ã§åä½ç¢ºèªã åè: http://ja.asciicasts.com/episodes/285-spork http://d.hatena.ne.jp/akihito_s/20110701 ï¼ä»æ´ï¼RSpec2+Capybara-webkitã§ã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¹ã - === SANDmark 19106 === beginning stress test RSpec2 + Capybara-Webkitã§ã®æ³¨æç¹ - === SANDmark 19106 === beginning stress test 使ããã®ãªã¹ã: ã©ã¤ãã©ãªå ã¡ãã£ã¨ãã解説 Spork ãã¹ãã®é«éåããã¦ãããD
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}