xUnit Test Patterns: Refactoring Test Code (Hardcover)
Gerard Meszaros
- 出版商: Addison Wesley
- 出版日期: 2007-05-01
- 售價: $3,160
- 貴賓價: 9.5 折 $3,002
- 語言: 英文
- 頁數: 833
- 裝訂: Hardcover
- ISBN: 0131495054
- ISBN-13: 9780131495050
-
相關分類:
軟體測試、Unit Test 單元測試、Refactoring
已絕版
買這商品的人也買了...
-
$2,500$2,375 -
$1,986Code Complete: A Practical Handbook of Software Construction, 2/e (Paperback)
-
$650$553 -
$880$695 -
$880$581 -
$780$741 -
$550$468 -
$980$774 -
$1,180$1,121 -
$480$408 -
$700$630 -
$580$493 -
$880$616 -
$680$578 -
$290$226 -
$600$480 -
$1,872Continuous Integration: Improving Software Quality and Reducing Risk (Paperback)
-
$620$527 -
$680$578 -
$1,980$1,881 -
$1,320The Art of Unit Testing: with examples in C#, 2/e (Paperback)
-
$941Build Awesome Command-Line Applications in Ruby 2: Control Your Computer, Simplify Your Life (Paperback)
-
$590$466 -
$1,550$1,473 -
$1,200$948
相關主題
商品描述
Description
Automated testing is a cornerstone of agile development. Testing can deliver new functionality more aggressively, accelerate user feedback, and improve quality. However, for many developers, creating effective automated tests is a unique and unfamiliar challenge.
XUnit Test Patterns is the definitive guide to writing automated tests for today's popular XUnit test automation frameworks. Renowned testing expert Gerard Meszaros introduces more than 120 proven patterns for making tests easier to write, understand, and maintain. He then shows you how to make them more robust and repeatable, and far more cost-effective.
Drawing on his extensive experience, Meszaros illuminates the evolving role of software testing and clearly defines unit, component and system testing. He then links these concepts to the "programmer" and "customer" tests required by agile methods. You'll learn how to optimize your test automation strategy, organize it, and implement it with XUnit. You'll also learn three categories of recurring problems, and how to overcome each of these "test smells."
A comprehensive reference to more than 120 testing patterns is included, and Meszaros illuminates the principles underlying each pattern, offering step-by-step usage instructions. You'll find high-level strategy patterns, design-level patterns for testing specific functionality, and coding idioms for optimizing specific tests. In addition, an extensive library of relevant code samples is available online. Topics covered include:
- Writing better tests--and writing them faster
- Software testing phases: fixture setup, exercise SUT, result verification, and fixture teardown
- Testing business logic, databases, user interfaces, and machine-to-machine interfaces
- Isolating software to test it independently from its environment
- Refactoring tests for greater simplicity
- Working effectively with XUnit, NUnit, JUnit, and other implementations
- Designing software for greater testability
This book will benefit developers, managers, and testers working with any agile or conventional development process, any testing framework, and any testing strategy--from "tests as specification" to "tests as safety net."
商品描述(中文翻譯)
描述
自動化測試是敏捷開發的基石。測試可以更積極地提供新功能,加速用戶反饋並提高質量。然而,對於許多開發人員來說,創建有效的自動化測試是一個獨特且陌生的挑戰。
《XUnit測試模式》是撰寫當今流行的XUnit測試自動化框架的自動化測試的權威指南。著名測試專家Gerard Meszaros介紹了超過120種證明有效的模式,使測試更容易撰寫、理解和維護。然後,他向您展示如何使它們更強大和可重複,並且更具成本效益。
Meszaros根據自己的豐富經驗闡明了軟件測試的不斷演變的角色,並清楚地定義了單元測試、組件測試和系統測試。然後,他將這些概念與敏捷方法所需的“程序員”和“客戶”測試相關聯。您將學習如何優化測試自動化策略,組織它並使用XUnit實施它。您還將學習三個常見問題類別,以及如何克服每個“測試氣味”。
書中包含了超過120種測試模式的全面參考,Meszaros闡明了每個模式背後的原則,並提供了逐步使用指南。您將找到高層策略模式,用於測試特定功能的設計級模式,以及用於優化特定測試的編碼習慣。此外,還提供了大量相關代碼示例的在線庫。涵蓋的主題包括:
- 撰寫更好且更快的測試
- 軟件測試階段:固定設置、執行SUT、結果驗證和固定拆卸
- 測試業務邏輯、數據庫、用戶界面和機器對機器界面
- 將軟件隔離以獨立於其環境進行測試
- 重構測試以獲得更大的簡潔性
- 有效地使用XUnit、NUnit、JUnit和其他實現
- 設計更易於測試的軟件
這本書將使任何敏捷或傳統開發過程、任何測試框架和任何測試策略的開發人員、經理和測試人員受益-從“測試作為規範”到“測試作為安全網”。