圖書標籤: iOS TDD Programming 軟件開發 計算機科學 測試 Objective-C 軟件測試
发表于2025-01-10
Test-Driven iOS Development pdf epub mobi txt 電子書 下載 2025
As iOS apps become increasingly complex and business-critical, iOS developers must ensure consistently superior code quality. This means adopting best practices for creating and testing iOS apps. Test-Driven Development (TDD) is one of the most powerful of these best practices. Test-Driven iOS Development is the first book 100% focused on helping you successfully implement TDD and unit testing in an iOS environment. Long-time iOS/Mac developer Graham Lee helps you rapidly integrate TDD into your existing processes using Apple,s Xcode 4 and the OCUnit unit testing framework. He guides you through constructing an entire Objective-C iOS app in a test-driven manner, from initial specification to functional product. Lee also introduces powerful patterns for applying TDD in iOS development, and previews powerful automated testing capabilities that will soon arrive on the iOS platform. Coverage includes * Understanding the purpose, benefits, and costs of unit testing in iOS environments * Mastering the principles of TDD, and applying them in areas from app design to refactoring * Writing usable, readable, and repeatable iOS unit tests * Using OCUnit to set up your Xcode project for TDD * Using domain analysis to identify the classes and interactions your app needs, and designing it accordingly * Considering third-party tools for iOS unit testing * Building networking code in a test-driven manner * Automating testing of view controller code that interacts with users * Designing to interfaces, not implementations * Testing concurrent code that typically runs in the background * Applying TDD to existing apps * Preparing for Behavior Driven Development (BDD) The only iOS-specific guide to TDD and unit testing, Test-Driven iOS Development covers both essential concepts and practical implementation.
沒必要全部都要單元測試吧!不過測試相關概念的講解還是挺清晰的,不必局限於iOS,隻是用到的單元測試類庫算是過時瞭,可以參照最新官方測試文檔:https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/Introduction/Introduction.html
評分沒必要全部都要單元測試吧!不過測試相關概念的講解還是挺清晰的,不必局限於iOS,隻是用到的單元測試類庫算是過時瞭,可以參照最新官方測試文檔:https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/Introduction/Introduction.html
評分沒必要全部都要單元測試吧!不過測試相關概念的講解還是挺清晰的,不必局限於iOS,隻是用到的單元測試類庫算是過時瞭,可以參照最新官方測試文檔:https://developer.apple.com/library/ios/documentation/DeveloperTools/Conceptual/testing_with_xcode/Introduction/Introduction.html
評分TDD似乎總被神話,如果單元測試需要寫到連一個自己幾乎能保證不齣錯的小功能都要寫案例,那根本就達不到Driven的效果。我還是認為隻有那些比較復雜易齣錯,跟團隊交互大的代碼纔需要寫單元測試,而這樣根本就跟TDD不是一個概念。順便吐槽下,英語太爛,看像“How Many Tests Could a Unit Test Test If a Unit Test Could Test Tests”這樣的句子真費勁。
評分TDD似乎總被神話,如果單元測試需要寫到連一個自己幾乎能保證不齣錯的小功能都要寫案例,那根本就達不到Driven的效果。我還是認為隻有那些比較復雜易齣錯,跟團隊交互大的代碼纔需要寫單元測試,而這樣根本就跟TDD不是一個概念。順便吐槽下,英語太爛,看像“How Many Tests Could a Unit Test Test If a Unit Test Could Test Tests”這樣的句子真費勁。
評分
評分
評分
評分
Test-Driven iOS Development pdf epub mobi txt 電子書 下載 2025