Tools I’ve Made

I wrote the following tools, and use them regularly. Look through the list, and see what might help you.

Bowling Game TDD KataBowling Game TDD Kata in Objective-C or Swift

My Objective-C and Swift versions of the Bowling Game TDD Kata, designed to teach Test Driven Development. Read about it in Xcode TDD Kata: Practice with the Bowling Game.
 

OCHamcrestOCHamcrest

My library for writing test assertions, and a framework for creating your own assertions. The Objective-C version of Hamcrest.
 

OCMockitoOCMockito

My library for generating stubs and mocks. The Objective-C version of Mockito.
 

uialertcontrollerMockUIAlertController / MockUIAlertViewActionSheet

My libraries for unit testing UIAlertControllers, or older UIAlertViews and UIActionSheets. Read about them in How to Test UIAlertControllers and Control Swizzling.
 

XcodeCoverageXcodeCoverage

My library for gathering and viewing test coverage. Read about it in How to Easily Measure Code Coverage in Xcode.
 

XcodeWarningsXcodeWarnings

My xcconfig to enable lots of Xcode warnings. Read about it in Xcode Warnings: Turn Them Up to Eleven.
 

TemplatesXcode Snippets for Tests

My test case code snippets for Xcode. Also includes my live templates for AppCode. Available to all new subscribers.
 

XCTest-templateXCTest Template

Apple’s template fills test suites with cruft I don’t want. My template is sleek, containing a single failing test to verify that the suite has been wired up correctly.