第äºåãããã æ¥æ¬ãã¢ããã°ã©ãã³ã°ã®ä¼java-jaæ¯é¨ä¼ï¼ä»®ï¼ãã£ã¦ãããï¼
æ¯åº¦ããªãã¿java-jaã¤ãã³ãã第äºåãããã æ¥æ¬ãã¢ããã°ã©ãã³ã°ã®ä¼java-jaæ¯é¨ä¼
ã«è¡ã£ã¦ãã¾ãããããã¯6/6ã®ã話ã
å ´æã¯ãã¯ã³ã´ã®ä¼è°å®¤ã
å½¢å¼ã¨ãã¦ã¯id:t-wadaã®ãããããTDDã®è¬ç¾©ã®ãã¨ãå®éãã®å ´ã§ãã¢çµãã§ãã¢ãããã
ããï¼ã¨ãã£ãæãã
id:t-wadaã®ãããããTDDã®ã話ã¾ã¨ã
èããªãããã¤ã³ããæ¸ãçããã®ããã®ã¾ã¾ã¯ãã¤ãã¦ã¿ãã
ãã¹ããã
ãã¹ãã失æããã(RED)
ç®çã®ã³ã¼ããæ¸ã
æåã®ãã¹ããæåãããï¼GREENï¼
ãã¹ããéãã¾ã¾ã§ãªãã¡ã¯ã¿ãªã³ã°(Refactor)
DeveloperTestingã¨ã¯ã»ã»ã»
PGã®
PGã«ãã
PGã®ããã®ãã¹ã
ï¼æ¬æ±
ãã¼ã¸ã§ã³ç®¡ç
PJã«å¿ è¦ãªãã®ããã¹ã¦ç®¡çãã¼ã«ã«ã¶ã¡ãã
ãã¹ãã£ã³ã°
èªååï¼èªååï¼
ãç¹°ãè¿ãã¨ãåç´ä½æ¥ã¯æ©æ¢°ã«ãããã
ãXFDããã¹ããè½ã¡ãããããã©ã³ããã¤ãã¿ãããªæ©æ¢°
åä½ãã綺éºãªã³ã¼ãï¼é»éã®å転ï¼
綺éºãããããããããããï¼
ãããªãããããï¼ããããï¼
ããããããåããªãããåã
ï¼ï¼ï¼ã«ãµã¤ã¯ã«ã®åå¾ãã§ãããªãã¨å¤§å¤ã«ãªã
ãªãã¡ã¯ã¿ãªã³ã°ã®ã³ã¹ããããã
ï¼ã®ç¶æ ã§ä»æ§ã¯æºããã¦ãã
2ï½°>3ããªãã¡ã¯ã¿ãªã³ã°
ãªãã¡ã¯ã¿ãªã³ã°ã®ã³ã¹ãã¯ï¼
é常æã«PGå·¥ç¨ã«ããã¡ãã
ããã客å ã«è¿½å æ©è½å®è£ æã®ã¡ãªããï¼ãã°ãå°ãªããªãã¨ãï¼ã説æãã
SBRå«ï¼w
TDDã¯è¨è¨ææ³ï¼
TDDã¯å質ãä¿è¨¼ãããã®ã§ã¯ãªããããå質ã¯åä¸ããã
TDD
ãã¯ãã®è¦ç¹
ãã¯ãã®è¦ç¹
ã¹ãã¼ãã¹ãã¯ã©ãããã®ï¼âæè¿HOTãªè©±é¡
è¨ç»ãããè¨ç»ãç¶ãã
è¨è¨ãããè¨è¨ãç¶ãã
å®ç§ãªè¨è¨ãªãã¦ãªããè¨è¨ãç¶ããã
TDDã®ãããï¼å¨ï¼çãªæå³ã§ã¯ãªãï¼
ä¸ã¤ãã¤ãå°ããã¤
è¤æ°ãç¸æã«ããã®ã¯ã ãªããä¸äººãã¤å¯¾å¦ããã°ãkï¼byãå®®æ¬æ¦èµï¼
å®®æ¬æ¦èµã¯ã¢ã¸ã£ã¤ã©ã¼
ç´ æ©ãåã
IDEï¼JUnit=Javaã®å¯¾è©±ç°å¢
System.out.printlntã¤ãã£ã¡ããã®ã¯ã©ããï¼
ããã¨æããããããassertã«ã¤ã£ããããã£ããï¼
æ¶ãã¦assertã«ã¤ã£ããã°ãk
ã¬ã¬ã·ã¼ã³ã¼ãã«ãã¹ãä»ãããªããã£ã©ã¯ã¿ã©ã¤ã¶ã¼ã·ã§ã³ãã¹
ãã§åºãã¦ããä»æ§ãæºãããã¹ãã³ã¼ããæ¸ã
å¦ç¿ãã¹ãã¯ããã¾ã§ãå¦ç¿ããããã®ãã¹ãï¼APIã®æåã調ã¹ããã¨ãï¼
ãã£ã©ã¯ã¿ã©ã¤ã¶ã¼ã·ã§ã³ãã¹ãã¯å羽詰ã¾ã£ãã¨ãç¨
ãã¹ãã®ã«ãã´ãªã¼ãå ¨å¡ã§ã³ã³ã»ã³ãµã¹ãåã£ã¦ããå¿ è¦ããã
http://code.google.com/p/infinitest/
ä¸å®ããã¹ãã«ãã
dankogaiã¯ä¸å®ããªãï¼
è³ãç¡é§ãªã
ã³ã¼ããæ¸ãã¦ãã¨ãã«ä¸å®ã«å¯¾ããæéãå¤ã
ä¸å®ãªã¨ãï¼ãããããªãã¨ãã®åãåãå
ã¸ã£ã°ãªã³ã°
ç°¡åãªãã¨ããé çªã«ã¹ãããã¢ãããã¦ãã
ãã¹ãã¯äººã®ãããªãã
æ¬å«ï¼åçµããï¼
gihyo.jpã®TDDåç»ã¿ããããã
ãºãã·ãï¼
ãé£ã«åº§ã£ã¦ããã@onkã«ãã¢ãããããããæãã¦ããã£ã¦ãã¢ããç«¥è²ãã¦ãw
ãã¢ããã®ãé¡ã¯ããã©ã¤ããªãã£ãã¥ã¼ã®å®è£
ã
åãã¦ã®TDDï¼ãã¢ããã§æãããã¨
- å
¨ä½çãªæµãï¼è¨è¨ï¼ã®ç¢ºèªã¯å¿
è¦
- ãã¨ã§å¤§å¹ ãªå¤æ´ãå¿ è¦ã«ãªã£ã¡ãã
- ãäºãã®ææçé大äº
- ãã¾ã©ããã£ã¦å®è£ ãããã¨ãã¦ãããããäºãåããã¨ãèããããã«ãã
- ãã¹ããæ¸ãã¨ãã«ã¯ï¼ã¡ã½ããã§å®è£
ã§ããã¨ãã¾ã§ãããããã
- ãã¡ã ã£ãã@ignoreããã°ãããããªã
- 交代ããã¿ã¤ãã³ã°ããããã
- ä»èª¿åè¯ãããã£ã¦ã¨ãã«äº¤ä»£ããã¨ãªãºã å´©ããã
@onkãå®éã«ãããªããè²ã
æãã¦ãããã®ã§è²ã
åå¼·ã«ãªã£ãã
æ¬ç·¨ã®é£²ã¿ä¼
å
ã«è¨ã£ã¦ããã¨ä¼è²»ã¯7600åã§ããwæªã¿ãªããããï½ï½ï½ï½
飲ã¿ä¼ã§id:daisuke-mãåãã¨ããå°è±ãããã¼ã®æ¹ã
ã«å²ã¾ãã¦è²ã
ã話ãèããã
ã¨æã£ããå°è±ã®ã³ããã¿ã¼ã«ãªã£ã¦ããä½ããã£ã¦ããï¼ry
次åã¯
ã¸ã§ã¸ã§åå¼·ä¼ããã
æµç³java-jaï¼ä»ã®åå¼·ä¼ã«åºæ¥ãªããã¨ããã£ã¦ãããï¼
ããã«ã·ãããï¼ãããããã
ã
ã
ã
ã
ã
ã
ï¼