Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Xcode includes XCTest, which is similar to <a href="http://www.sente.ch/software/ocunit/" rel="noreferrer">OCUnit</a>, an Objective-C unit testing framework, and has full support for running XCTest-based unit tests as part of your project's build process. Xcode's unit testing support is described in the <a href="https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/UnitTesting.html" rel="noreferrer">Xcode Overview: Using Unit Tests</a>.</p> <p>Back in the Xcode 2 days, I wrote a series of weblog posts about how to perform some common tasks with Xcode unit testing:</p> <ul> <li><a href="http://eschatologist.net/blog/?p=18" rel="noreferrer">Unit testing Cocoa frameworks</a></li> <li><a href="http://eschatologist.net/blog/?p=20" rel="noreferrer">Debugging Cocoa framework unit tests</a></li> <li><a href="http://eschatologist.net/blog/?p=24" rel="noreferrer">Unit testing Cocoa applications</a></li> <li><a href="http://eschatologist.net/blog/?p=26" rel="noreferrer">Debugging Cocoa application unit tests</a></li> </ul> <p>Despite using OCUnit rather than XCTest, the concepts are largely the same.</p> <p>Finally, I also wrote a few posts on how to write tests for Cocoa user interfaces; the way Cocoa is structured makes it relatively straightforward, because you don't have to spin an event loop or anything like that in most cases.</p> <ul> <li><a href="http://eschatologist.net/blog/?p=16" rel="noreferrer">Trust, but verify.</a></li> <li><a href="http://eschatologist.net/blog/?p=10" rel="noreferrer">Unit testing Cocoa user interfaces: Target-Action</a></li> <li><a href="http://eschatologist.net/blog/?p=12" rel="noreferrer">Unit testing Cocoa user interfaces: Cocoa Bindings</a></li> </ul> <p>This makes it possible to do test-driven development for not just your model-level code but also your controller-level and even view-level code.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload