Working Effectively with Unit Tests
暫譯: 有效運用單元測試
Jay Fields
- 出版商: CreateSpace Independ
- 出版日期: 2014-12-09
- 售價: $732
- 貴賓價: 9.5 折 $695
- 語言: 英文
- 頁數: 352
- 裝訂: Paperback
- ISBN: 1503242706
- ISBN-13: 9781503242708
-
相關分類:
軟體測試、Unit Test 單元測試
立即出貨 (庫存=1)
買這商品的人也買了...
商品描述
This book details Jay Fields' strong opinions on the best way to test, while acknowledging alternative styles and various contexts in which tests are written. Whether you prefer Jay Fields' style or not, this book will help you write better Unit Tests.
From the Preface:
Over a dozen years ago I read Refactoring for the first time; it immediately became my bible. While Refactoring isn’t about testing, it explicitly states: If you want to refactor, the essential precondition is having solid tests. At that time, if Refactoring deemed it necessary, I unquestionably complied. That was the beginning of my quest to create productive unit tests.
Throughout the 12+ years that followed reading Refactoring I made many mistakes, learned countless lessons, and developed a set of guidelines that I believe make unit testing a productive use of programmer time. This book provides a single place to examine those mistakes, pass on the lessons learned, and provide direction for those that want to test in a way that I’ve found to be the most productive.
The book does touch on some theory and definition, but the main purpose is to show you how to take tests that are causing you pain and turn them into tests that you're happy to work with.
From the Preface:
Over a dozen years ago I read Refactoring for the first time; it immediately became my bible. While Refactoring isn’t about testing, it explicitly states: If you want to refactor, the essential precondition is having solid tests. At that time, if Refactoring deemed it necessary, I unquestionably complied. That was the beginning of my quest to create productive unit tests.
Throughout the 12+ years that followed reading Refactoring I made many mistakes, learned countless lessons, and developed a set of guidelines that I believe make unit testing a productive use of programmer time. This book provides a single place to examine those mistakes, pass on the lessons learned, and provide direction for those that want to test in a way that I’ve found to be the most productive.
The book does touch on some theory and definition, but the main purpose is to show you how to take tests that are causing you pain and turn them into tests that you're happy to work with.
商品描述(中文翻譯)
這本書詳細闡述了 Jay Fields 對於最佳測試方式的強烈看法,同時承認了其他風格和各種撰寫測試的情境。無論你是否喜歡 Jay Fields 的風格,這本書都將幫助你撰寫更好的單元測試。
前言中提到:
十多年前,我第一次閱讀《重構》(Refactoring);它立即成為我的聖經。雖然《重構》並不是關於測試的書籍,但它明確指出:如果你想進行重構,基本的前提是擁有穩固的測試。那時候,如果《重構》認為這是必要的,我毫無疑問地遵從了。這是我開始創建高效單元測試的旅程的開始。
在閱讀《重構》之後的12年中,我犯了許多錯誤,學到了無數的教訓,並制定了一套我認為能使單元測試成為程式設計師時間有效利用的指導方針。這本書提供了一個單一的地方來檢視這些錯誤,傳遞所學到的教訓,並為那些希望以我認為最有效的方式進行測試的人提供指引。
這本書確實觸及了一些理論和定義,但主要目的是向你展示如何將那些讓你感到痛苦的測試轉變為你樂於處理的測試。