{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/tdd-books","result":{"data":{"markdownRemark":{"id":"788cc34a-d952-5692-a10d-91b00d7fa1f3","html":"<p>動作するきれいなコードを書くための手法として、テスト駆動開発 (TDD) が謳われることがあります。</p>\n<p>この記事では、そんなテスト駆動開発を学ぶための書籍を紹介します。</p>\n<h2 id=\"テスト駆動開発\" style=\"position:relative;\"><a href=\"#%E3%83%86%E3%82%B9%E3%83%88%E9%A7%86%E5%8B%95%E9%96%8B%E7%99%BA\" aria-label=\"テスト駆動開発 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><a href=\"https://amzn.to/2S9Xa0H\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">テスト駆動開発</a></h2>\n<p><a href=\"https://www.amazon.co.jp/dp/B077D2L69C/ref=as_li_ss_il?ie=UTF8&linkCode=li2&tag=oshimayuki0d-22&linkId=0b8ed3854f575927afa97b00ad5da0cd&language=ja_JP\" target=\"_blank\"><img border=\"0\" src=\"//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=B077D2L69C&Format=_SL160_&ID=AsinImage&MarketPlace=JP&ServiceVersion=20070822&WS=1&tag=oshimayuki0d-22&language=ja_JP\" ></a><img src=\"https://ir-jp.amazon-adsystem.com/e/ir?t=oshimayuki0d-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=B077D2L69C\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\"></p>\n<p>テスト駆動開発の考案者である Kent Beck 氏の原典を、日本におけるテスト駆動開発の第一人者である和田卓人氏が訳した書籍です。</p>\n<p>テスト駆動開発の流れが 1 つ 1 つ丁寧に解説されており、実際にどのように考えて手を動かすのかを学べます。</p>\n<p>xUnit をテスト駆動開発で実装するといった面白い題材も扱われており、非常に勉強になります。</p>\n<p>テスト駆動開発を学ぶ際の 1 冊目としておすすめの書籍です。</p>\n<h2 id=\"実践テスト駆動開発\" style=\"position:relative;\"><a href=\"#%E5%AE%9F%E8%B7%B5%E3%83%86%E3%82%B9%E3%83%88%E9%A7%86%E5%8B%95%E9%96%8B%E7%99%BA\" aria-label=\"実践テスト駆動開発 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><a href=\"https://amzn.to/3nt5lAb\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">実践テスト駆動開発</a></h2>\n<p><a href=\"https://www.amazon.co.jp/dp/4798124583?&linkCode=li2&tag=oshimayuki0d-22&linkId=ed73e14249c6f1a6f30f7eb18a0abe23&language=ja_JP&ref_=as_li_ss_il\" target=\"_blank\"><img border=\"0\" src=\"//ws-fe.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=4798124583&Format=_SL160_&ID=AsinImage&MarketPlace=JP&ServiceVersion=20070822&WS=1&tag=oshimayuki0d-22&language=ja_JP\" ></a><img src=\"https://ir-jp.amazon-adsystem.com/e/ir?t=oshimayuki0d-22&amp;language=ja_JP&amp;l=li2&amp;o=9&amp;a=4798124583\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\"></p>\n<p>テスト駆動開発の実践的な解説書です。</p>\n<p>より応用的なサンプルや、テストの難しい領域への対応について書かれています。</p>\n<p>テストによる設計のブラッシュアップにも着目されており、テストコードでクラスの使い心地を試しながら設計を洗練させていく流れを味わうことができます。</p>\n<p>先に紹介した『テスト駆動開発』を読んでからこちらに進むのがいいと思います。</p>\n<h2 id=\"おわりに\" style=\"position:relative;\"><a href=\"#%E3%81%8A%E3%82%8F%E3%82%8A%E3%81%AB\" aria-label=\"おわりに permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>おわりに</h2>\n<p>テスト駆動開発に関する有名な書籍は以上 2 冊になります。</p>\n<p>この他にも、プログラミング言語などの解説の中でテスト駆動開発を実践している書籍もあります。</p>\n<p>例えば Ruby の入門書である『<a href=\"https://amzn.to/3cti7dE\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">プロを目指す人のためのRuby入門 言語仕様からテスト駆動開発・デバッグ技法まで</a>』(通称、チェリー本) は、テスト駆動開発でサンプルコードを書きながら Ruby の基礎を学ぶことができます。</p>\n<p>テスト駆動開発専門の書籍よりも簡単な例が多いので、こういった書籍からテスト駆動開発を学び始めるのもいいかもしれません。</p>\n<p>また、テストを実施する上では、どのようにテストケースを設計するかも重要です。</p>\n<p>テストケースの設計に関する入門書としては</p>\n<ul>\n<li><a href=\"https://amzn.to/3x5HL05\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">はじめて学ぶソフトウェアのテスト技法</a></li>\n<li><a href=\"https://amzn.to/3px52oX\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">知識ゼロから学ぶソフトウェアテスト 【改訂版】</a></li>\n</ul>\n<p>あたりが定番で、こちらもおすすめです。</p>","fields":{"slug":"/posts/tdd-books","tagSlugs":["/tag/testing/"],"autoRecommendPosts":["software-testing-books","agile-software-development-books","ddd-books","ruby-and-rails-books"]},"frontmatter":{"date":"2021-04-27T06:41:42.215Z","description":"動作するきれいなコードを書くための手法として、テスト駆動開発 (TDD) が謳われることがあります。\nこの記事では、そんなテスト駆動開発を学ぶための書籍を紹介します。","tags":["testing"],"title":"テスト駆動開発 (TDD) を学ぶための書籍まとめ","socialImage":null,"recommendPosts":["https://www.kanzennirikaisita.com/posts/software-testing-books","https://www.kanzennirikaisita.com/posts/software-developer-books-index"]}}},"pageContext":{"slug":"/posts/tdd-books"}},"staticQueryHashes":["251939775","3942705351","401334301"]}