æè¿ã¨ããããã¸ã§ã¯ãã§ãJavaScriptã使ããã客ããå ã®ãã¼ã ãã¼ã¸ãèªè¾¼ããã®å 容ã«å¿ãã¦åºåãJavaScriptå ã§çæãããã¬ã³ã¡ã³ãã¨ã³ã¸ã³ãã®é ä¿¡ãµã¼ãã¹ãæä¾ãã¦ããã ãã®ä¸ã§ãJavaScriptãè¤éåãã¦ããã®ã§ãJSã®xUnitã®æ¸ãæ¹ã¨ãCIãµã¼ãJenkinsã«è¼ããããã«ãã¾ããã JavaScriptã®åä½ãã¹ã QUnitã¨Jasmineã調ã¹ããããã¥ã¢ãªxUnitã好ããªã®ã§ãä»åQUnitãé¸æãããQUnitã®ãã¹ã表è¨ã¯ä¸è¨ã®ããã«ã·ã³ãã«ãªequalé¢æ°ã§ãµã¯ãµã¯ããã¾ããã æ¸ããªããã½ã¼ã¹ã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°ãé²ã¿ã¾ããããã¯ããã¹ãã³ã¼ãæ¸ãã¨ã³ã¼ãã®æªãæãé¡èã«è¦ããã®ãå¿å°ããã§ãã ï¼ï¼QUnit å ã ã¯ãjQueryã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ã¹ã¿ã¼ããããç¾å¨ã¯jQueryã«ä¾åãã¦ããªã å ¬å¼ãµã¤ãï¼ht
ç§ãRSpec使ã£ã¦ãã¹ãæ¸ãæã¯ãããªæãã§æ¸ãã¦ãããã£ã¦ã®ãæ¸ãã¦ã¿ãã*1 ãã¹ããæ¸ãé çªã«ã¤ã㦠TDDã§ã³ã¼ããæ¸ãå ´åãå ã«ãã¹ããæ¸ãäºã«ãªãã¾ãã ããã¦ããã®ãã¹ããæ¸ãé çªã§ãããç§ã¯ä¸è¨ã®ãããªé çªã§æ¸ãããã«æèãã¦ãã¾ãã è¨è¨ãã describe ãæ¸ã itãæ¸ã subjectãæ確ã«ãã before(context)ãæ確ã«ãã ãã®ä»ã«ãæ°ãã¤ãã¦ããç¹ã¯ãããªæã å¥ã®ã¡ã½ããå¼ã¶æã¯åºæ¬çã«stubãªã©ã§æ½°ã contextã¯ããã®å ´åããit ã¯ããã§ãããã¨ãã«ãªãããã«ãã ä¸ã¤ãã¤ã詳細ãæ¸ãã¾ãã è¨è¨ãã ãã¹ããæ¸ãå§ããåã«ãã¾ãå®è£ ãããã¨ãã¦ãã¯ã©ã¹ãã¡ã½ãããç°¡åã«è¨è¨ãã¾ãã å°ãªãã¨ãããã¯ã©ã¹åããã¯ã©ã¹ã¡ã½ãã or ã¤ã³ã¹ã¿ã³ã¹ã¡ã½ããããã¡ã½ããåããã¡ã½ããã®æ»ãå¤ããããã¯æ±ºãã¾ãã describe ã
Railsã¨ã³ã¸ãã¢ã«ãªã£ã¦ãã1å¹´åããããçµã¡ã社å ã®Railsã®ããã¸ã§ã¯ããå ¨é¨ã§5ã¤ããã触ã£ã¦ãä»ãã£ã¦ãAbilie*1ã§ãããã人並ã¿ã«ãã¹ããæ¸ãã¦ãæ°ããã¦ããã®ã§ãç¾æç¹ã§ãã£ã¦ããã¹ãã®æ¹æ³ãã¾ã¨ãã¦ããã ãã¹ãã®ã«ã¼ã«çãªã® rspecã§ã¯å¿ ãã¢ãã«ã®ãã¹ãã¯æ¸ãããã«ãã¦ãããã«ãã¼ã大ä½æ¸ãã¦ããã©ãã³ã³ããã¼ã©ãã«ã¼ãã£ã³ã°ã®ãã¹ãã¯ãã¾ãæ¸ãã¦ãªãã ã¨ããã®ããã³ã³ããã¼ã©ã¼ã®ã³ã¼ãã極åçããã¦ã¢ãã«ã太ããã¦ããã®ã§ã³ã³ããã¼ã©ã®ãã¹ãã¯ããã¾ãæå³ãç¡ãæ°ããã¦ãã¦ããã®ä»£ããã«Capybaraã§ãã¹ããæ¸ãã¦ããã°ååãªããããªãããªã¨æã£ã¦ãããããCapybaraã¯æ¸ãã¦ãã®ã§ãããããæå³ã§ã¯æ¸ãã¦ãã¨ãè¨ããã 社å ã®ç®¡çè ã ãã使ãã管çç»é¢ãä½ã£ã¦ããã©ããã£ã¡ã¯ãã¹ãããã¾ãæ¸ãã¦ãªããããã¯åããªããªã£ã¦ãä¸è¬ã¦ã¼ã¶ã¼ã«ã¯å½±é¿ã
æ°æ¥åã«ã«ãã¬ãã¸ã®è©±ãããã¾ãããããããªäºè¨ã£ã¦ãã£ã¦èªåã§ã«ãã¬ãã¸ãªãã¦ã¨ããªãã§ããï¼åã¯ããããã¨ããªãã§ãã ãªã®ã§ãããªã®Jenkinsã«ããããã°ãããã§ããã èªåçã«ã«ãã¬ãã¸ãè¨æ¸¬ãã¾ããã ï¼Jenkinsãããªãã¦ãããã§ããï¼Devel::Coverã§ã«ãã¬ãã¸ãè¨æ¸¬ãããªãPERL5OPTã§æ¸¡ãã®ãä¸çªç°¡åã§ããã export PERL5OPT="-MDevel::Cover" ã¡ãªã¿ã«Jenkinsã§ãã¹ããã¦ãã¨ãã«ã¯ãªããããã¹ãã«ä½¿ã£ã¦ããPerlããè¦ããã¨ããã«ä½è¨ãªä¾åã©ã¤ãã©ãªãç½®ããããªãã®ã§ãDevel::Coverã¯ããã ãå¥ã®å ´æã«ããã¦ã¾ããããããã°Devel::Coverã使ãæ以å¤ã¯Devel::Coverãã¤ã³ã¹ãã¼ã«ãã¦ãããã£ã¬ã¯ããªãæå¹åããªãããã«ãã¦ã¾ãã cpanm -l/path/to/devel-cove
ã¯ãã¾ãã¯ãã¯ã æè¿ããã¾ãã³ã¼ãæ¸ãã¦ã¾ãããlestrratã§ãã ãã¹ããèµ°ãããæã«ããããªä»ã®ãã¼ã¢ã³ãç«ã¡ä¸ãããããã®ãã¹ãã®ããã ãã®è¨å®ãå ã«ããªãã¨ãããªãã£ããã¨ãè²ã ããã¾ããããçµæ§é·ãéMakefile.PLã¯Module::Installã§æ¸ãã¦ããããããã£ã¦ãã¡ãã£ã¨åã«xaicronãããæ¸ãã¦ãModule::Install::TestTargetã§ãã«ããã«ããã£ã¦ãã®ã§ãããã¡ãã£ã¨åã«Yappo/tokuhiromãããproveã§æ¸ãã¦ãã»ããã¢ãããã¾ãã£ã¨èªåã®æ¬²ããç¨éã«ã使ããäºã«æ°ã¥ããã®ã§ããããªã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ãããã®ããã«å¤ãã¦ã¿ã¾ããã æµã proveã§ãã¹ããããã¨ãproveã®ãã©ã°ã¤ã³ãå¼ã³åºãè¨å®ãã§ããã®ã§ãããããããã©ã°ã¤ã³ã¨ãããããã¹ãåã«å®è¡ãããããã¯ã¨ãã¦å©ç¨ããäºã«ãã£ã¦ä»»æã®è¨å®ç¨ã®ã³ã¼ã
0. åæ 0.1 ã¯ãã㫠以åãPerl ã®ãã¹ãã«ã¤ãã¦ã¨ããè¨äºãæ¸ãã¾ããã2008å¹´ã®è¨äºãªã®ã§ãããç¾å¨ãããããã®ã¢ã¯ã»ã¹ãããããã§ãã ãã ãTest::More ãã¢ããã°ã¬ã¼ãããã¦æ°ããæ¸ãæ¹ãã§ããããã«ãªã£ãããããããåèªèº«ã®ããã°ã©ã ã®æ¸ãæ¹ãå°ããã¤å¤ãã£ã¦ãã¦ããã®ã§ããã¤ã¾ã§ãå¤ãè¨äºãè¦ã¦ãããã®ãã©ãããªãã¨æãã2011å¹´ãã¼ã¸ã§ã³ãã¤ãã£ã¦ã¿ã¾ããã(ã¡ãã£ã¨ããæ¹å®ãã¦ã¾ãããããã)DB ã¾ããã®ãã¹ãã«é¢ãã¦ã¯ãã¾ã次åã 0.2 対象 Perl ã¯æ¸ããããPerl ã®ãã¹ãã³ã¼ããæ¸ãããã¨ãç¡ã人ã 0.3 åä½ç¢ºèªç°å¢ % uname -a FreeBSD over.tsucchi.mydns.jp 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 23:51:01 JST 2011
æ¬æ¥è¡ããã Shibuya.js ã®çºè¡¨è³æãã¢ãããã¾ããã ããããã® JavaScript ãã¹ã / Test.js - Shibuya.js çºè¡¨è³æ View more presentations from hotchpotch JS ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã®ãããã£ã±ãªèª¬æã JavaScript ãã¹ãã«ãããåé¡ãããã«ã¤ãã¦ã®è§£æ±ºæ¹æ³ã®ä¸ã¤ãCUI ã§ã®ãã¹ããEnvjsãã¨ã³ããã¼ã¨ã³ããã¹ãã«ããã JS / Ajax ã®ãã¹ããçµããã«ã¡ãã£ã¨ Phantomjs ã®è©±ãããã¾ãã ã¹ã©ã¤ãã®æå¾ã«ããããã«ããã¯ãã¾ã ã³ã¬ã ï¼ã¨ãã JS ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã¯åå¨ããªããä»å¾ JS ã®ãã¹ãã¯ãåããæ¸ããããã¹ãããã©ãã ãç°¡åã«æ¸ããã»æ¸ãææ³ã確ç«ããããã«ãã£ã¦æµè¡å»ãã¯æ±ºã¾ã£ã¦ããããããªãããªããã¨æã£ã¦ã¾ãããã®ãã¡ã®ä¸ã¤ãã¹ã©ã¤
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}