The Art of Unit Testing: with Examples in .NET (Paperback)
暫譯: 單元測試的藝術:以 .NET 為例 (平裝本)
Roy Osherove
- 出版商: Manning
- 出版日期: 2009-07-08
- 售價: $1,590
- 貴賓價: 9.5 折 $1,511
- 語言: 英文
- 頁數: 320
- 裝訂: Paperback
- ISBN: 1933988274
- ISBN-13: 9781933988276
-
相關分類:
.NET、軟體測試、Unit Test 單元測試
已過版
買這商品的人也買了...
-
$880$695 -
$560$504 -
$490$382 -
$990$891 -
$490$245 -
$720$569 -
$1,120$1,098 -
$620$527 -
$530$419 -
$800$632 -
$1,200$1,176 -
$860$731 -
$650$553 -
$480$432 -
$680$537 -
$520$411 -
$820$648 -
$530$419 -
$890$757 -
$490$387 -
$750$593 -
$490$417 -
$450$351 -
$850$723 -
$890$703
商品描述
Description
Unit testing, done right, can mean the diff erence between a failed project and a successful one, between a maintainable code base and a code base that no one dares touch, and between getting home at 2 AM or getting home in time for dinner, even before a release deadline.
The Art of Unit Testing builds on top of what's already been written about this important topic. It guides you step by step from simple tests to tests that are maintainable, readable, and trustworthy. It covers advanced subjects like mocks, stubs, and frameworks such as Typemock Isolator and Rhino Mocks. And you'll learn about advanced test patterns and organization, working with legacy code and even untestable code. The book discusses tools you need when testing databases and other technologies. It's written for .NET developers but others will also benefit from this book.
Table of
Contents
- The basics of unit testing
- A first unit test
- Using stubs to break dependencies
- Interaction testing using mock objects
- Isolation (mock object) frameworks
- Test hierarchies and organization
- The pillars of good tests
- Integrating unit testing into the organization
- Working with legacy code
商品描述(中文翻譯)
描述
單元測試,如果做得正確,可以成為失敗專案與成功專案之間的關鍵,成為可維護的程式碼庫與不敢觸碰的程式碼庫之間的分水嶺,甚至在發佈截止日期之前,決定你是凌晨兩點回家還是能準時回家吃晚餐。《單元測試的藝術》在已有的文獻基礎上進一步探討這個重要主題。它逐步引導你從簡單的測試到可維護、可讀和可靠的測試。書中涵蓋了進階主題,如模擬(mocks)、桩(stubs)以及 Typemock Isolator 和 Rhino Mocks 等框架。你將學習到進階的測試模式和組織,如何處理遺留程式碼甚至是無法測試的程式碼。這本書還討論了測試資料庫和其他技術時所需的工具。雖然這本書是為 .NET 開發者撰寫,但其他人也能從中受益。
目錄
1. 單元測試的基本概念
2. 第一個單元測試
3. 使用桩來打破依賴
4. 使用模擬物件進行互動測試
5. 隔離(模擬物件)框架
6. 測試層級與組織
7. 良好測試的支柱
8. 將單元測試整合進組織
9. 與遺留程式碼合作