Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
This is just an update regarding my tijasmine Titanium wrapper for the Jasmine JavaScript BDD library. At the time that I first mentioned tijasmine, it was based on the alpha version of Jasmine 2.0. Iâve since changed it so that itâs now based on the most current public release of Jasmine, which is 1.3.1. At the time of this writing, if you visit the Jasmine site, you see the page of documentation
Are you writing complex JavaScript applications and struggling to keep them bug free? Once you've found one bug, do you know how to keep it from reemerging in the future? This book will take you deep into the dangerous and secretive world of JavaScript testing using the Jasmine framework. As a new employee at MI7.5 you will be tasked with solving critical problems and keeping the free world safe,
æ¦è¦ Jasmineã使ã£ã¦JavaScriptã®ãã¹ããæ¸ããã¥ã¼ããªã¢ã«ãrubyã§åãjasmine gemãå©ç¨ãããçç±ã¯ä¸è¨ ã¦ã§ããµã¼ãã¼ãã¤ãã¦ããã®ã§ãããã¯ã·ã§ã³ã¢ããªãèµ·åããªãã¦ãã Firefox(selenium webdriver)ã¨ã®é£æºã容æ testã®ã¹ã³ã¼ã Jasmineã§ãã¹ãããã®ã¯ããã¾ã§ã¦ãããã§ããéçºåãã§ãããåãå ¥ãã®ãã¹ãã¨ã¯åãã¦èããã¹ã åæºå ruby1.9/2.0 ã¨bundler
AngularJS 㯠Google ãä¸å¿ã«ãªã£ã¦éçºãé²ãããã¦ãã JavaScript MVC ãã¬ã¼ã ã¯ã¼ã¯ ã®ä¸ç¨®ã§ãããã¡ãããªã¼ãã³ã½ã¼ã¹ï¼MIT Licenseï¼ã ä»åã¯ãã® AngularJS ã使ã£ã¦ Hello World ããããã§ããã ãã ä¸çã«ããã«ã¡ã¯ããã ãããããããããªãã®ã§ã次ã®ãããªã«ã³ã¸ã§ãã£ã¦ã¿ããã¨æãã¾ãã TypeScript ã§æ¸ãã¦ã¿ã¾ãã ãã«ããã¼ã«ã« Grunt ã使ãã¾ãã Testacular + Jasmine ã使ã£ã¦èªåãã¹ãï¼ã¦ããããã¹ããåå ¥ãã¹ãï¼ç°å¢ãæ§ç¯ãã¾ãã AngularJS ã®ãã¼ã¸ã§ã³ã¯2013å¹´1æç¾å¨ã®ææ°å®å®çã§ãã 1.0.4 ã使ç¨ãã¾ãã ãªããä»åã®ã½ã¼ã¹ã³ã¼ãä¸å¼ã GitHub ã§å ¬éãã¦ãã¾ãã ã¾ãããã¡ãã§å®éã«åä½ã確èªãããã¨ãã§ãã¾ãã View ãæ¸ã ã¾ãã¯
以ä¸ã®SlideShareã大å¤åèã«ãªã£ãã®ã§åå¿ãå ¼ãã¦CoffeeScriptçãæ¸ãã¦ã¿ãã JSéçºã«ãããTDDã¨èªåãã¹ããã¼ã«å©ç¨ã®åæ http://www.slideshare.net/KojiNakamura/jstdd ç®æ¬¡ 1. Matcheræ¦è¦³ 2. beforeEach / afterEach 3. Spy 4. Async Test 5. jQuery code test 1. Matcheræ¦è¦³ notã§å¦å®ã®Matcherã¨ãªã expect(x).toEqual(y) expect(x).not.toEqual(y) expect(x).toBe(y) toBe㯠=== ã«ããçå¤ãã§ã㯠expect(x).toMatch(pattern) expect(x).toBeDeï¬ned() expect(x).toBeUndeï¬ned() expec
æ¥é ããJavascriptã§éçºããã¦ããã®ã«ãé¢ããããã¾ããã¹ããæ¸ããªãã®ã§ãããã¯æ¬æ ¼çã«ãã¹ããæ¸ããã¨èª¿ã¹ã¦ã¿ã¾ãããJavascriptã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¨ãã£ããJsUnitãªã®ããªã¼ã¨æã£ã¦ãããã調ã¹ã¦ã¿ãã¨çµæ§ããããªç¨®é¡ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ããã£ãããã¦ããã®ä¸ã§å¾ã«äººæ°ãªã®ãã©ãããJasmineãããã Jasmine ï½ JavaScript Test ãã¬ã¼ã ã¯ã¼ã¯ ããå¼ç¨: ä»åã¯, JavaScript ã®ãã¹ããè¡ãããã®ãã¬ã¼ã ã¯ã¼ã¯Jasmine ã®ç´¹ä»ã§ãã JavaScript ã®ãã¹ãã¨ããã°, JSUnit ãæåã§ãã JSUnit ã¯, JUnit ã¨ã«ä¼¼ããããª, Matcher ãå©ç¨ã§ããããã¦ããããããã®ã§ãã, éçºãã¡ã³ããã³ã¹ãã¹ããããã¦ãã, ã¾ãWebããã¸ã§ã¯ãã«çµã¿è¾¼ã¾ãªãã¨å©ç¨ã§ããªããã¨ã ã¡ãã£
akahigeg/jasmine-titanium â GitHub ãå¾æã®ã¤ã¯æ¯åãã®å»¶é·ã§ã¾ã¨ãããã®ãã¤ãã§ãªã®ã§å ¬éãã¦ã¿ã¾ããã forkæè¿ã§ãã specs.shãè¦ãã¨åããã¾ãããã£ããå¼·å¼ãªæ段ã§å®ç¾ãã¦ããã®ã§ããã¾ããè¡åã®ããæãã®ãã®ã§ã¯ãªãã®ã§ãããã²ã¨ã¾ãlibã¨specã«ã½ã¼ã¹ãæ¾ãè¾¼ãã§ããã ãã§JasmineãTitaniumä¸ã§åãããã«ãªã£ã¦ããã¯ãã§ãã READMEã®è±èªãå°ã ã¤ã³ããã ã¨æãã®ã§ãæ¥æ¬äººã®æ¹ã¯README.jaã®æ¹ãã©ããã Markdownã¨ãåãã¦æ¸ãã¾ããããã¨ãããããããè¨æ³ããããã¨ãåãã¦ç¥ãã¾ãããã ããã¾ã§ã®ãããã èå³ããæ¹ã¯ä»¥åã®åãçµã¿ãåç §ãã¦ã¿ã¦ãã ããã ãããããããããã£ã¦è¨ãããã Titaniumã§ã¦ããããã¹ã | ã²ããã Titaniumã§ã¦ããããã¹ã Jasmineåã³ç·¨
Titaniumã§ãã¹ããæ¸ãã®ã«Jasmineã使ã£ã¦ã¿ã¾ãããJasmineã«ã¤ãã¦ã¯ãã¡ããhttp://pivotal.github.com/jasmine/ ã§ãJasmineãã®ã¾ã¾ã§ã¯Titaniumä¸ã§ä½¿ããªãï¼ãã©ããè¯ã調ã¹ã¦ãªããã©ï¼ã®ã§ãããTitaniumã§Jasmineã使ããããã«ããããã®ã©ã¤ãã©ãªãå ¬éããã¦ãã¾ããã Jamine Titaniumhttps://github.com/akahigeg/jasmine-titanium/ 使ãæ¹ã¯README.ja.markdownã«è©³ããæ¸ããã¦ãã¾ããhttps://github.com/akahigeg/jasmine-titanium/blob/master/README.ja.markdown ãã¹ãããã¸ã§ã¯ããæ°è¦ä½æãã¦ããã®Resources/specã«ãã¹ãã³ã¼ããä½æãããã¨ã«ãã¾ã
ååãç°å¢æ§ç¯ã«ã¤ãã¦ã¾ã¨ããã®ã§ãä»åã¯ç°¡åãªãã¹ãã±ã¼ã¹ãä¾ã«ãããªããã¾ã¨ãã¦ãããã¨æãã¾ã Ti.Network.HTTPClientã«é¢ãããã¹ãã±ã¼ã¹ãä¾ã«ãã Qiita API ã®é£æºå¦çã®å®è£ ã«ã¢ã¤ã¢ã¤ãããã®ãæ±ãã¦ãããã¨ãããã®ã§ãTi.Network.HTTPClientã«é¢ãããã¹ãã±ã¼ã¹ãä¾ã«ãã¦ã¿ããã¨æãã¾ã ã²ã¨ã¾ãã®ãé¡ã¨ãã¦ããããã¯ã¼ã¯ã®æ¥ç¶ã確ç«ãã¦ãããã©ãããã¨ãããã¹ãã±ã¼ã¹ã«ã¤ãã¦ä»¥ä¸é çªã«ã¾ã¨ãã¦ã¿ããã¨æãã¾ã JasmineãRSpecã©ã¤ã¯ã®å½±é¿ãåãã¦ãããããã¨ããã®ã以åèªãã è¨æ¶ããããããã¨å¥ã®ã¨ããã§RSpecå ¥éè¨äºã¨ãã¦RSpec ã®å ¥éã¨ãã®ä¸æ©å ã¸ã¨ããã¨ã³ããªãã¨ã¦ãããããããã£ãã®ã§ãã®è¨äºã®æ¹æ³ãåãå ¥ããªãã以ä¸ã«ã¾ã¨ãã¦ããã¾ã ä»®å®è£ ã¾ã§ã®æµã ãã¹ãã¨ãªãxhrSpec.coffeeã¨ãããã¡
çã xdescribeãxitãå©ç¨ããã°OK ç¹å®ãã¹ãã ãå®è¡ããããªã£ã¦ããèæ¯ã«ã¤ã㦠Qiitaã®ãã¥ã¼ã¯ã¼ã¢ããªä½ã£ã¦ãä¸ã§ãèªç¶ã¨QiitaAPIã®ã©ã¤ãã©ãªã®ãããªãã®ãåºæ¥ã¤ã¤ããããã®ã©ã¤ãã©ãªã®ãã¹ããjasmine使ã£ã¦æ¸ãã¦ã¾ãã 10åå¼·ç¨åº¦ã®ãã¹ãã±ã¼ã¹ã¨ã¯ãããæ¯åQiitaã®APIã«ã¢ã¯ã»ã¹ãã¤ã¤ãå ¨é¨ã®ãã¹ãã±ã¼ã¹ãå®æ½ãããã®ã¯ã¡ãã£ã¨ãªãã¼ã¨æã£ã¦ãã¾ããã ç´è¿ãã¹ããããã®ã¯ãèªåãã¹ããã¯ããæ稿ã«é¢ããé¨åã®å¦çã®ã¿ã§ãããã©ãã«ããããã¨ããã®ãããããã®ãã£ããã§ãã æåèããã¢ããã¼ã coffee/test/tests.coffeeå ã§ãå®æ½ãããã¹ãã±ã¼ã¹ãåæ¿ããã¨ãèãã¾ãã å ·ä½çã«ã¯ (() -> if testsEnabled # use Ti.include for jasmine to be a global va
Behavior-Driven JavaScript Documentation:(æ¥æ¬èªè¨³) 1.3 Not yet translated below 2.0 2.1 2.2 Edge Jasmine on GitHub
å質åã«çãã¦ããã¨è¨å®ãã¡ã¤ã«ãã§ããããã¾ãã ä»åã¯ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã¯jasmineã ãã©ã¦ã¶ã¯ChromeãFirefoxãSafariã¨ãã¦ãã¾ãã â»å質åã®é¸æè¢ã¯ã¿ãã§åãæ¿ãããã¾ãã Which testing framework do you want to use ? Press tab to list possible options. Enter to move to the next question. > jasmine Do you want to capture a browser automatically ? Press tab to list possible options. Enter empty string to move to the next question. > Chrome > Firefox > Safari > Whic
ãªã«ãããããã¦iPod Touchä¸ã§gmailã®ã¡ã¼ã«ãåé¤ããå ´åããµã¼ãã¼ã«ç½®ãã¦ãããã®ãåé¤ããã¦ãã¤ãã§ã«ä»ã®ãã·ã³ã§èªã¿è¾¼ãã ã¡ã¼ã«ãæ¶ããããããï¼ï¼ï¼ãã¤ã®éã«ãæ¯è¦ã®Mac miniã®ã¡ã¼ã«ãï¼æåã»ã©æ¶ãã¦ããã ãï¼ï¼ï¼ gmailã®åæã®ä»çµã¿ã£ã¦ãã¾ãã¡ããåãã£ã¦ãªãã£ããããããã¼ããã¨ããããã§ããã¯ã¢ããã¯ãã¾ãã«ã¨ã£ã¨ãã¾ãããã
ãã®è¨äºã¯è³å³æéåãã§ããï¼æ´æ°ãã1å¹´ãçµéãã¦ãã¾ãï¼ JavaScriptã¦ããããã¹ãä¸å¹´çã®ç§ããNettuts+ ã®ãã¥ã¼ããªã¢ã«ã§ç¥ã£ããã¹ããã¼ã« ãtestemãã®ãé°ã§å¤§å¤æã£ãã®ã§æ¯éãå§ãããããããã§ç´¹ä»ãã¦ã¿ã¾ãã testem ã£ã¦ãªã« testem via GitHub : airportyh/testem Unit testing in Javascript can be tedious and painful, but Testem makes it so easy that you will actually want to write tests. è¦ããã«ãé¢åãªJSã®ã¦ããããã¹ããããå¿«é©ã«ãã¦ã¿ããªã§ãããã¼ã«ãã¹ãæ¸ãããï¼ã¨ãããã¼ã«ã§ãã testemèªä½ã¯node.jsãã¼ã¹ã§åä½ããJasmine/QUnit/Mochaã«å¯¾å¿ãã¦
Jasmineã§ã¹ããã¯ãæ¸ãã¦ããç°å¢ãæ´ããã®ã«Jasmine Toolãªããã®ã試ãã¦ã¿ãã ãªãæè¿ãªãã ãJasmineæ¼ãã§ãããJasmineãã試ãã¦ãªãã ãã§ããä»æã¯ããã¾ããã 2011/01/12è¿½è¨ Jasmine Toolã¯ãã©ã¦ã¶ãä»ãããã®ã§ãæ®éã®Jasmineã¨ãã£ã¦ããã¨ã¯å¤ãããªãã Node.jsã使ã£ã¦åããã®ã§ãã£ã¦ãNode.jsã®ã½ã¼ã¹ããã¹ãããã®ã§ã¯ãªããããããããã©ã Node.jsã®ã¢ã¸ã¥ã¼ã«ã®ãã¹ãã«ã¯jasmine-nodeãvowsãåãã¦ãããã 両æ¹è©¦ãã¦ã¿ã¦jasmine-nodeã«ã¤ãã¦ã¯æ¸ããã Jasmine Tool ããããããã¯ãªããã Jasmine Toolã¯Node.jsã§åãã³ãã³ãã©ã¤ã³ã®ãã¼ã«ã ç°¡åã«è¨ãã¨rubygemsã®jasmineã®Node.jsçã rubygemsçã¨ã®éãã¯Rub
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}