Behavior-Driven JavaScript Documentation:(æ¥æ¬èªè¨³) 1.3 Not yet translated below 2.0 2.1 2.2 Edge Jasmine on GitHub
Behavior-Driven JavaScript Documentation:(æ¥æ¬èªè¨³) 1.3 Not yet translated below 2.0 2.1 2.2 Edge Jasmine on GitHub
beforeEachå ã§DOMãã¡ã¾ã¡ã¾ããã®ãé¢å ãªãã§ããï¼ä¾ãã°ã§ããä¹±æ´ã«ã´ãã£ã´ãã£ã¨æ¸ãã¨... describe('Some test case....', function() { var testDiv, testList, attrTest, insertTest; beforeEach(function() { testDiv = document.createElement('div'); testDiv.innerHTML = '<a id="attrTest" data-test="hogehoge" target="_blank" href="#">test</a>'; document.body.appendChild(testDiv); testList = document.createElement('div'); testList.innerHTM
æ¬ã³ã¼ãã¼ã¯ãæè¡è©è«ç¤¾çºè¡ã®æ¸ç±ãJavaScriptã©ã¤ãã©ãªå®è·µæ´»ç¨ï¼»å³é¸111ï¼½ãã®ä¸ãããç¹ã«Build Insiderã®èªè ã«æç¨ã ã¨èããããé ç®ãç·¨éé¨ãé¸ã³ãå社ã®è¨±å¯ãå¾ã¦è»¢è¼ãããã®ã§ãã ãJavaScriptã©ã¤ãã©ãªå®è·µæ´»ç¨ï¼»å³é¸111ï¼½ãã®è©³ç´°ãè³¼å ¥ã¯æè¡è©è«ç¤¾ã®ãµã¤ããç®æ¬¡ãã¼ã¸ãã覧ãã ããã Jasmineã§ãã¹ã対象ãªãã¸ã§ã¯ããæã¤ã¡ã½ããã®æ»ãå¤ãåºå®å¤ã«å¤æ´ãããããã®ã¡ã½ãããå®è¡ããããã©ãããæ¤è¨¼ãããããããã«ãSpyï¼ã¹ãã¤ï¼ã使ç¨ãã¾ãã åç§°ï¼ Jasmine åé¡ï¼ ãã¹ã URLï¼ http://pivotal.github.com/jasmine/ é¢é£ãã¡ã¤ã«ï¼ jasmin.jsãjasmin-html.jsãjasmin.css Jasmineã®Spyï¼ã¹ãã¤ï¼æ©è½ Webãµã¼ãã¹å¼ã³åºããªã©å¤é¨ã®å¦çãå¼ã³åºãã¦ããç®
ã¯ããã« JavaScript ã§ãã¹ãããããã®ãã¬ã¼ã ã¯ã¼ã¯ã¯ QUnit 㨠Jasmine ã人æ°ãäºåãã¦ããã¿ããã§ãããæè¿ã¯ Jasmine ãåªå¢ï¼éèªãããã°ã§ Jasmine ãæ¨ãã¦ããã®ãããè¦ããã¾ãããä¸ã«ã¯ãQUnit ã¯ãªã¯ã³ã³ããããã㯠Jasmineï¼ãã£ã¦æãã®éæ¿ãªæè¦ãã ç§ã¯ QUnit ã使ã£ã¦ãã¾ããããJasmine ã®å¢ãã¯è¦éããªãã ã£ã¦ãã㧠Jasmine 試ãã¦ã¿ã¾ããã©ã¡ããåªãã¦ãããã¯ãå®éã«ä½¿ã£ã¦ã¿ãªãã¨åãããªãã§ãããã Jasmineã«ã¤ã㦠introduction.js RSpec 風ã«è¨è¿°ã§ãããJavaScript ã®ãã¹ãã£ã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãã¹ã¿ã³ãã¢ãã³çã¨Rubyçã¨Nodeçãããã¾ããã¹ã¿ã³ãã¢ãã³ç㯠QUnit åæ§ã«ããã©ã¦ã¶ã§å®è¡ããã¿ã¤ããRuby ç㨠Node çã¯ããªãã¨ã³ã
æ¥é ããJavascriptã§éçºããã¦ããã®ã«ãé¢ããããã¾ããã¹ããæ¸ããªãã®ã§ãããã¯æ¬æ ¼çã«ãã¹ããæ¸ããã¨èª¿ã¹ã¦ã¿ã¾ãããJavascriptã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã£ããJsUnitãªã®ããªã¼ã¨æã£ã¦ãããã調ã¹ã¦ã¿ãã¨çµæ§ããããªç¨®é¡ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ããã£ãããã¦ããã®ä¸ã§å¾ã«äººæ°ãªã®ãã©ãããJasmineãããã Jasmine ï½ JavaScript Test ãã¬ã¼ã ã¯ã¼ã¯ ããå¼ç¨: ä»åã¯, JavaScript ã®ãã¹ããè¡ãããã®ãã¬ã¼ã ã¯ã¼ã¯Jasmine ã®ç´¹ä»ã§ãã JavaScript ã®ãã¹ãã¨ããã°, JSUnit ãæåã§ãã JSUnit ã¯, JUnit ã¨ã«ä¼¼ããããª, Matcher ãå©ç¨ã§ããããã¦ããããããã®ã§ãã, éçºãã¡ã³ããã³ã¹ãã¹ããããã¦ãã, ã¾ãWebããã¸ã§ã¯ãã«çµã¿è¾¼ã¾ãªãã¨å©ç¨ã§ããªããã¨ã ã¡ãã£
PhantomJSã¨Jasmineã§æ¯ãèãé§åéçºãªJavaScriptãã¹ãï¼ãã¬ã¼ã ã¯ã¼ã¯ã§å®è·µï¼ JavaScriptãã¹ãå ¥éï¼2ï¼ï¼1/3 ãã¼ã¸ï¼ ãã£ããã¨JavaScriptããã¹ãããããã«ãä»æ³¨ç®ã®JavaScriptç¨ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ãããã¤ãç´¹ä»ãããã®æ¦è¦ããå®è·µçãªä½¿ãæ¹ã¾ã§è§£èª¬ããé£è¼ ååã¯ãJavaScriptãã¹ãã®åºæ¬ãä»åãããã¬ã¼ã¯ã ã¼ã¯ãç´¹ä» ååã®ãJavaScriptãã¹ãã®åºç¤ç¥èã¨ä½¿ãããã¬ã¼ã ã¯ã¼ã¯6é¸ãã§ã¯ãJavaScriptã®ãã¹ããåãå·»ãç°å¢ããJavaScriptã®ãã¹ãã«ä½¿ç¨ã§ãããã¬ã¼ã ã¯ã¼ã¯ã®ç´¹ä»ãè¡ãã¾ãããä»åããã¯ãååã®è¨äºã§ç´¹ä»ããããã¬ã¼ã ã¯ã¼ã¯ã使ç¨ãã¦å®éã«JavaScriptã®ãã¹ãç°å¢ãæ§ç¯ãããã¹ããè¡ãã¾ã§ã®æµãã解説ãã¾ãã ä»åã¯ãPhantomJSãã¨ãJasmineããåãä¸ãã¾
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}