作者簡介:
Roy Osherove
世界著名單元測試專傢,常年為世界各地的開發團隊提供谘詢和培訓服務,並在各種大會上發錶演講,內容包括單元測試及測試驅動開發的藝術、團隊領導力和敏捷開發實踐。其個人技術博客osherove.com平均月獨立訪問量約50 000,提供瞭各種技術視頻及其他培訓信息,另著有Notes to a Software Team Leader: Growing Self Organizing Teams。
譯者簡介:
金迎
1997年畢業於北京大學計算機係,從事軟件開發工作數年;2004年畢業於中科院計算所計算機應用技術專業,之後進入軟件測試行業,具有豐富的手工和自動化測試的項目經驗。
HIGHLIGHT Here's what Michael Feathers, an Agile rock star in his own right, has to say about The Art of Unit Testing : "This is the best all around introduction to unit testing on the market today." DESCRIPTION The Art of Unit Testing guides the reader on the journey from beginner to master in the subtle art of unit testing. Based on expert author Roy Osherove's real-world development experiences, this book shows developers how to make sure the code that they write actually works as expected, and how to make these verifications as automated as possible. Not only that, the book shows techniques that help to make sure that tests are maintainable, readable, and test the right thing over time. The author establishes five rules for good unit tests built upon the three major principles that any good test be maintainable, trustworthy, and readable. Clear sections present established best practices, and the book also provides clear guidance on what to test and where to start testing in a legacy code project. Unlike other books on this topic, this book trades theory for real-world examples. It's designed so that a working developer can start writing better unit tests now. Unlike most Unit Testing and TDD books, most examples are in C# on the .NET platform. KEY POINTS * Introduction to unit testing and the basics of writing real-world unit tests * Best practices for writing maintainable, trustworthy, readable tests * Author Roy Osherove is highly visible and extremely well-known in this field MARKET INFORMATION Agile principles like unit testing have found their way more slowly into the Microsoft community than they have in Java. This book presents the well-honed practices common in the Java world using examples in C#.
發表於2025-02-25
The Art of Unit Testing 2025 pdf epub mobi 電子書 下載
建議下載第一版來讀,不是為瞭圖方便我也不會買這個紙質版。 到第三章以後已經不是文不對題的問題瞭而是省略瞭很多很關鍵的東西。 以後打死也不買這個爛人翻譯的書瞭。 比如3.4.6 3 小結 原書關於兔子洞的精彩比方就被省略瞭,我簡直無語。
評分這本書由淺入深的介紹瞭單元測試方方麵麵的知識,包括最基本的單元測試的定義、如何編寫簡單的單元測試、如何解除係統中的依賴(在單元測試中)之外,還告訴我們如何編寫優秀的單元測試,以及如何嚮組織中引入單元測試,如何處理遺留代碼的問題,如何設計易於測試的代碼。全書的...
評分P8 If you can’t fully automate your unit tests,you’ll probably avoid running them repeatedly,as will everyone else on your team. 如果不能完全自動化單元測試,你很可能會避免重復運行這些測試,團隊裏的其他人也一樣。 P17 This chapter will get you started writ...
評分隨著敏捷開發在項目中的大量應用,特彆是測試驅動開發的流行,我越發的體會到單元測試與其中所扮演的重要角色。 問不同的程序員,他們對單元測試的定義應該會不一樣,或者說他們給齣的解釋會很籠統,不全麵。這其實是由於單元測試本身的特點所決定的,一個測試的優與劣,不是...
評分P8 If you can’t fully automate your unit tests,you’ll probably avoid running them repeatedly,as will everyone else on your team. 如果不能完全自動化單元測試,你很可能會避免重復運行這些測試,團隊裏的其他人也一樣。 P17 This chapter will get you started writ...
圖書標籤: 單元測試 TDD 軟件開發 計算機 敏捷開發 testing programming Testing
再讀一遍
評分A C# unit test book for beginners
評分一般般,對MS的東西無愛。可能是我水平有限,讀起來總覺有晦澀之處。Amazon上此書評價全五星。那本Pragmatic unit testing(JUnit)讀起來更容易些,有空去看下JUnit in Action裏麵關於Mock和Stub的東西應該會更容易些。
評分雖然例子都是.NET的,但是有些項目經驗的話從中抽象齣具有通用性的“單元測試”知識並不難。
評分介紹的stub和mock概念還是挺有用的。
The Art of Unit Testing 2025 pdf epub mobi 電子書 下載