æ¨æ¥ã®ãããã¾ã®æ¼ä¼ã¿ã« TDD éå ´ããã£ããã§ããããã¹ãã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°ã«ã¤ãã¦è³å¦ãã£ãã®ã§ã¡ãã£ã¨èªåã®èããã¾ã¨ãã¦ããã¾ãã ããã«å ããC# 㨠NUnit ã§ã©ã®ããã«ãã¹ãã³ã¼ãããªãã¡ã¯ã¿ãªã³ã°ã§ããããã¨ããã®ãç´¹ä»ãã¾ãã ã¨ããããã¡ããã¡ã¤ã³ã ãã¹ãã追å ããéã«è¿½å ãããã¹ãã ããå®è¡ãããå ¨é¨å®è¡ãããã¨ããã®ãæè¦ãåããããã§ããã主ã«åå¥ã«æå®ããã®ãé¢åã¨ããçç±ã§å ¨é¨å®è¡ããæ´¾ã§ãã å ¨é¨å®è¡ããã¨æéããããï¼ããã¯ãã¯ãåä½ãã¹ããããªãã§ãããéããã¹ãã¯åå²ãã¦åé¢ãã¡ããã¾ãããã ããã«é¢ãã¦ã¯ã¬ã¬ã·ã¼ã³ã¼ãæ¹åã¬ã¤ã (Object Oriented SELECTION)ãã©ãããæ©ä¼ãããã°ããã辺ã«ã¤ãã¦ãæ¸ãããã¨ããã§ãã ãã¹ãã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°ã«ã¤ã㦠ã¾ãããã¹ãã³ã¼ãã®ãªãã¡ã¯ã¿ãªã³ã°ã¯ããã ã¨æãã¾
è«æï¼è§£èª¬ â å¤ç®ã»èº¯ä½ã¨è¨åã»æ©å¨ã®ç·åã¨ãã«ã®ã¼ã·ãã¥ã¬ã¼ã·ã§ã³ãã¼ã«ãBESTãã®éçºï¼ãã®7ï¼ï¼ã½ããã¦ã§ã¢ãã¹ãææ³ ç©ºæ°èª¿åã»è¡çå·¥å¦ä¼å¤§ä¼å¦è¡è¬æ¼è«æéï½2007.9.12 ã14ï¼ä»å°ï¼ï½ 丹羽 åå·³ï¼æ¥å»ºè¨è¨ï¼ä» http://www.ibec.or.jp/best/event/20070914briefing/OS_24.pdf â
ï¼»æè¡è¬åº§ï¼½ CppUnit å ¥é CppUnit å ¥é æ ªå¼ä¼ç¤¾ ãªã¼ã¸ã¹ç·ç ãªãã¸ã§ã¯ããã¯ããã¸ã¼ã»ã½ãªã¥ã¼ã·ã§ã³é¨ ä¼è¤ åä¸ ã¯ããã« CppUnit 㯠C++ ã®åä½ãã¹ããèªååãããã¬ã¼ã ã¯ã¼ã¯ã§ããXP (eXtreme Programming) ã®æå±è ã¨ãã¦ç¥ããã Kent Beck ã¨ããã¶ã¤ã³ãã¿ã¼ã³ã§æå㪠Erich Gamma ãéçºãã JUnit (Java) ããMichael Feather ã C++ ã«ç§»æ¤ããã®ãæåã§ãã ç§ã JUnit ã CppUnit (xUnit ã¨ç·ç§°) ã®åå¨ãç¥ã£ãã®ã¯ Martin Fowler ã®ããªãã¡ã¯ã¿ãªã³ã°ãããã§ããããèªãã§ããã«ãã²ä½¿ã£ã¦ã¿ããã¨ããè¡åã«é§ããã¾ãããç§ãæºãã£ã¦ããã®ã¯ C++ ã«ããçµè¾¼ã¿ç³»ã®ããã¸ã§ã¯ãã§ããã®ã§ãæ©é CppUnit ããã¦ã³ãã¼ãããã®ã§ããã
TEST http://d.hatena.ne.jp/devbankh/201001ãã¢ãã¯ãã¹ã¿ãã使ã£ãå¹ççãªã¦ããããã¹ã http://d.hatena.ne.jp/devbankh/201002ãã¢ãã¯ã¨ã¹ã¿ãã®éã ã³ãã¥ãã±ã¼ã·ã§ã³ http://d.hatena.ne.jp/devbankh/20051124ãç°¡åãã¤å¹æçã«è©±ãããã« "ã¢ãã¯ãªãã¸ã§ã¯ã"ã¨ããè¨èã¯ããã¹ãã®ããã«æ¬ç©ã®ãªãã¸ã§ã¯ããã¾ããç¹æ®ãªãªãã¸ã§ã¯ãã表ãè¨èã¨ãã¦å®çããããããã¢ãã¯ã¨ããè¨èã¯å ã ã¹ã¿ãããã£ããã¼ã«ãããã®ã§ãªãã[ã¹ã¿ãã使ã£ãã®ã¨ã¯å¥ã®] ã¦ããããã¹ãæ¹æ³ãç¨ããããã®ãã®ãªã®ã ããã®è¨äºã§ã¯ãã¢ãã¯ãªãã¸ã§ã¯ãã®ãã¡ã³ã«å¥½ã¾ããç¸äºä½ç¨ä¸å¿ã®ãã¹ãã¨ãããè¡ãã¦ããç¶æ ä¸å¿ã®ãã¹ãã¹ã¿ã¤ã«ã¨ã®éãã説æããããã«ãã¢ãã¯ã¨ã¹ã¿ãã®éãã«ã¤ãã¦æãä¸ããã ç®æ¬¡
æ°é£è¼ã¨ãã¦ããªãã¸ã§ã¯ãæåã®åå®ç¾©ããéå§ãããç¹ã«æè¿ã® ã¢ã¸ã£ã¤ã«éçºã®ååããããªãã¸ã§ã¯ãæåãè¦ã¤ããªããã¦ã¿ãããã¨ã ãåæ©ã ããªããã®é£è¼ã¯ãæè¿ã®æ¬ãã»ããã¼ãblogãç§ä¿¡ã¡ã¼ã«ããã㦠å®è·µããæãã¦ãããã¨ããæ°çºæ³ã¨ãã¦æ示ãã¦ããããã¨ããææ°è¾¼ã¿ã§ ãããã¾ã æ¥çã¨ãã¦ã®å®èª¬ã«è³ã£ã¦ããªãããããã¯è³ãã¤ã¤ããå 容ãä¸å¿ã§ããããã²ã¿ãªãããèªãã ææ³ããã£ã¼ãããã¯ãã¦ãå¹³éã«é£è¼ã®åæ°ããã ããã
æ°ããã½ããã¦ã§ã¢éçºææ³ã¸ãã£ã¬ã³ã¸ã§ãããï¼ ã½ããã¦ã§ã¢éçºã®ä¸çã«ãæ¥ã ã®é²æ©ããããããã¦ãã®ä¸ã«ã¯ã使ãã°ãã¾ãã¾ãªæ©æµãåããããææ³ããããããããããããç¾å ´ã§ããã«æ´»ç¨ã§ããã¨ã¯éããªããä¾ãã°ã1990年代æ«ã«çã¾ãã1ã¤ã®ãã¼ã ãå½¢æããã¨ã¯ã¹ããªã¼ã ã»ããã°ã©ãã³ã°ï¼XPï¼ã¨ããéçºææ³ããããããã¯ãã¨ã¦ãåªããéçºææ³ã ã¨æãã®ã ããéçºããã¸ã§ã¯ãåä½ã§ã顧客ã¾ã§å·»ãè¾¼ãã å½¢ã§ä½¿ããããã¨ãåæã¨ãªã£ã¦ããããããã顧客ããã¿ã§ã¾ã£ããæ°ããæ¹æ³ã«ãã£ã¬ã³ã¸ã§ãããã¨ããã°ãã§ããªããã¨ã®æ¹ãå§åçã«å¤ãã ãããã§ã¯ãã¨ã¯ã¹ããªã¼ã ã»ããã°ã©ãã³ã°ã®ææ³ãå ¨é¨ä½¿ããã¨ããã使ããã¨ãã§ããé¨åã ããåãåºãã¦è©¦ã¿ããã¨ãã§ãããã¨ããã¨ãããããããã«ããããªããã¨ã¯ã¹ããªã¼ã ã»ããã°ã©ãã³ã°ã¯ãããã¤ãã®ãã©ã¯ãã£ã¹ã¨å¼ã°ããé ç®ããæãç«ã£ã¦ããã®ã ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}