iPhone Unit Testing

前端 未结 5 1097
鱼传尺愫
鱼传尺愫 2021-02-02 02:39

I finished my project on an iPhone dev at uni WITHOUT doing \"useful\" unit testing (did some simple ones just to put on my report).

I was looking at the apple\'s unit t

相关标签:
5条回答
  • 2021-02-02 03:07

    I have a series on iPhone Unit Testing. Initially, I explored OCUnit (Xcode), Google Toolbox for Mac (GTM) and GHUnit. Testing wise, I prefer the Xcode built in unit tests (OCUnit). Visually I prefer GHUnit for the GUI interface. Xcode 4's testing support is much improved from Xcode 3.

    If you need a GUI on the device for testing, you can add GHUnit later, since it is built on top of GTM and can run OCUnit and GTM unit tests.

    iPhone Unit Testing Explained

    • iPhone Unit Testing Explained Part I
    • iPhone Unit Testing Explained Part II
    0 讨论(0)
  • 2021-02-02 03:20

    Here's the updated URL for : Apple's Automated Testing With Xcode 3 and Objective-C

    0 讨论(0)
  • 2021-02-02 03:22

    You might find these links useful:

    • Test Driving Your Code with OCUnit
    • Automated Unit Testing with Xcode 3 and Objective-C
    • OCUnit: Integrated Unit Testing In Xcode
    • iPhone Unit Testing with OCUnit
    0 讨论(0)
  • 2021-02-02 03:22

    I found OCUnit really straightforward and easy to use. Very similar to JUnit or other unit testing modules for other languages.

    0 讨论(0)
  • 2021-02-02 03:30

    i use GHUnit, is a test framework for Objective-C, you can follow the instruction on the page or see the video TDD for iPhone Development , GHUnit it's easy to use and very helpful.

    cheers!

    0 讨论(0)
提交回复
热议问题