xUnit Test Patternsèªæ¸ä¼
xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series (Fowler))
- ä½è : Gerard Meszaros
- åºç社/ã¡ã¼ã«ã¼: Addison-Wesley Professional
- çºå£²æ¥: 2007/05/21
- ã¡ãã£ã¢: ãã¼ãã«ãã¼
- è³¼å ¥: 5人 ã¯ãªãã¯: 210å
- ãã®ååãå«ãããã° (66件) ãè¦ã
WEwLC読書会ããç¶ç¶åå ãã»ã¨ãã©ã®ãªããååå ã4人ãããã§ãè¨15人ã16人ã ã£ããã
ä»æ¥ã®çµè«ã¨ãã¦ã¯ããã®åãã§ãã¤ç¡¬æ´¾ãUnit Testã«çã£åããåãçµãã§ãã¦ãã¼ã¸å½ããã®æ
å ±éãå¤ããGerard Meszaros ããå°ãèªéãã¦ãã ãããé¡ããã¾ãã¨ãã話ã«ãªã£ã¦ããã
ãªãã¨ãããããæ¬ã ãä»æ¥ãµã¤ã³ã¢ãããã人ãã¡ã¯ãå¾¹å¤ã§(!)翻訳ãã人ããã¦ãåå è
ãæ°åããå
¥ã£ã¦ããã
è±èªã§ã¯ãåããããªå
容ã http://xunitpatterns.com/ ã«ãããããã
ä»åã¯ããã¸ã§ã¯ã¿ã¯ç¡ããçºè¡¨è
ã¯ãWikiãæèªãã人ãã»ã¨ãã©ãã¹ã±ããããã¯ã§ææ¸ãã¹ã©ã¤ããä½ã£ãã®ã¯川西さんã
ãã¦ãä»æ¥ã®é²æã¯4ç« ã®éä¸ã¾ã§ã
- Preface
- Introduction
åæ¸ããç´30ãã¼ã¸ã¨çµæ§é·ããã¾ãå 容ãæ¿ããã¾ã ä»ã«Refactoring a Testã¨ããç¯ããã£ããããã¯ã¾ã次åã
- Chapter 1. A Breaf Tour
- Chapter 2. Test Smells
- Chapter 3. Goal of Test Automation
- Chapter 4. Philosophy of Test Automation
ãã®è¾ºã¯æ¦å¿µçãªè©±ã§ããªãããããã¨ããäºã主é¡ã
2ç« ã¯ããã¹ãã®èããã®è©±
èãã¯ãリファクタリングã§ååºã ããåé¡ã®ããã³ã¼ãã«ãããããç¹å¾´ãã«ã¿ãã°åãããã®ã
éè¦ãªç¹å¾´ã¯ã以ä¸äºã¤ã
- åé¡æ¬ä½ãããè¦ã¤ãããã
- åé¡ãããã°çºçããã¡ã ããåé¡ããªããã°çºçãã«ãã
xUTPã®ä¸ã§ã¯ããªã ãã®äº¤æãä¾ã¨ãã¦æãã¦ããã
èãã®ã¸ã£ã³ã«ã¨ãã¦ã3ã¤æãã¦ãã£ãã
- ã³ã¼ãã®èã
- æ¯ãèãã®èã
- æ¯ãèãã®èãã§éè¦ãªãã¨ã¯ãå®è£ ã³ã¼ãã®å¤æ´æãå¿ è¦ä»¥ä¸ã«ãã¹ãã失æããªãããã¨ãããã¨ããã®å ´åã¯ããã¹ãã®ä½ãæ¹ã«Fragile Testã¨ããåé¡ããããããããªãã
- ããã¸ã§ã¯ãã®èã
- ããã¸ã§ã¯ãã«åé¡ãããå ´åã®ç¹å¾´ã
- 対å¦æ³ã¨ãã¦ããã¨ã¿çç£æ¹å¼ã®ã5ã¤ã®ãªãããæãããã¦ããã
- ããã«ã¤ãã¦ã¯ãéåææãã対人çã«5ã¤ã®ãªãã使ãã¨ãç¯äººæ¢ãããã¤ã¯ãããã¸ã¡ã³ãã«å ã¡ãå¯è½æ§ããããåå æåãããã解決æåãããå ´åããããä¾ãã°PAL(ポジティブアクションラーニング)ã¨ãããã¡ãã使ãæ¹æ¬¡ç¬¬ã ãã©ã
3ç« ã¯ããã¹ãèªååã®ç®æ¨ã«ã¤ãã¦ã
- çµæ¸çãªç®æ¨ã¨ãã¦ã¯ããã¹ããä½æãããã¨ã§ãå¾ã
ã«ä½æ¥éãæ¸ããã¨ãç®æ¨ã¨ãã¦æ²ãã¦ããããã¹ãã³ã¼ãã®ä½æãä¿å®ã«ãããæéãæ¸ããªããã°æå³ããªãã
- ãã®æ¬ã®ãã¿ã¼ã³ã使ããã¨ã§åè ã«è¿ã¥ããã¨ã¯æãããããã§ã100%æåã¨ãããã¨ã¯èãã«ãããæ¬æ¸ã§ãæãã¦ããããã¢ãã¼ã«ã¨ããã«ã¯ãã¡ããã¨æ°åãã ãã¦è¡ããããªãã ããã
- ä¸è¨ã®ç¹ãã¹ãã¼ã¯ãã«ãã«è¨´æ±ããã«ã¯é£ããã®ã§ããã¹ãã«ã¯æéãããããªããã¨ãã£ãæ¹åã§è¨´æ±ããäºãèãã
4ç« ã¯ããã¹ãèªååã®å²å¦ã«ã¤ãã¦
ä»æ¥ã¯ãããã ãã§çµãã£ãããOutside-InããInside-Outãï¼ã¨ããé¨åã¯ä»æ¥ä¸çªé¢ç½ãã£ããéçºææ³ã人ã¨åããªãã¨çæãããã¨ãããããããã ã¢ããã®é çªã§ã¯ã©ã¹æ§é ãä½ã£ã¦ãã(Inside-Out)ããããããã¦ã³(Outside-In)ã§ä½ã£ã¦ãããã¨ãããã¨ã¯ãç´é¢ãã¦ããä¸é©åã®æ ¹å¹¹ã«ããããã«æããã¨ã£ãããã¨ãã¦èãã¦ã¿ããã
ãã®èªæ¸ä¼ã«åå ããã¨å æ°ããããããä»äºã§ã¯å¿åºãã£ãããããã¨ãå¤ããã©ããããã£ãå ´ã§å¾ããããã®ãããã«ãã£ã¼ãããã¯ããããèããæ°æã¡ã®ä½è£ããããããããã