iOS Unit Test MyBook_Jason Huang 淺談
iOS Unit TestMyBook_Jason Huang
淺談
http://www.codedata.com.tw/java/unit-test-the-way-changes-my-programming/
(1)(2)
(4)
(3)
(5)
(1)定義測試類的名字,繼承⾃自XCTestCase(2)可以在interfce中定義變數(3)單元測試執⾏行前運⾏行的代碼
(5)真正寫單元測試的⽅方法了.注意:⼀一定是以”test”開始命名函數的⽅方法(4)單元測試結束後調⽤用的⽅方法
http://meandmark.com/blog/2012/05/introduction-to-unit-testing-with-ocunit/
http://qualitycoding.org/testing-alerts/
• Objective-C TDD Example - on YouTubehttp://www.youtube.com/watch?v=WADaMF79Vts
• UIViewController TDD - on YouTubehttp://www.youtube.com/watch?v=NthPd0zbua4
• iOS Model-View-Controller TDD - on YouTubehttp://www.youtube.com/watch?v=YTFfNVlYiig
Conclusion…
Resource• 【單元測試】改變了我程式設計的思維⽅方式 !
http://www.codedata.com.tw/java/unit-test-the-way-changes-my-programming/
• iOS单元测试- ⼤大致簡述!
http://blog.liyunlong.org/blog/2013/11/07/iosdan-yuan-ce-shi/
• iOS開發中的單元測試(⼀一)!
http://www.infoq.com/cn/articles/ios-unit-test-1
• Unit Testing Your Alerts and Action Sheets!
http://qualitycoding.org/testing-alerts/
• Testing in XCode 5 - Jonathan Penn - Cocoa Slopes 2013!
http://www.youtube.com/watch?v=8cpEIik-FZM
• Use of Unit Test in Xcode 5 (StackOverflow)!
http://stackoverflow.com/questions/19030858/use-of-unit-test-in-xcode-5
• Getting started: Unit Testing in Xcode 5!
https://medium.com/on-coding/e1963f852ca2
• WWDC 2013 Session 409 Testing in Xcode 5 !
!